abinfo "Installing y-cruncher program files ..."
install -vdm755 "$PKGDIR/usr/lib/y-cruncher"
cp -rv --no-preserve=ownership y-cruncher Binaries "Custom Formulas" \
    -t "$PKGDIR/usr/lib/y-cruncher/"

abinfo "Installing y-cruncher launcher ..."
install -vdm755 "$PKGDIR/usr/bin"
ln -sv ../lib/y-cruncher/y-cruncher "$PKGDIR/usr/bin/y-cruncher"

abinfo "Installing system-wide y-cruncher username config file ..."
install -vd "$PKGDIR/etc/xdg"
install -vm755 "$SRCDIR/y-cruncher-username.txt" \
    "$PKGDIR/etc/xdg/y-cruncher-username.conf"

abinfo "Linking Username.txt to system-wide configuration ..."
ln -sv ../../../etc/xdg/y-cruncher-username.conf \
    "$PKGDIR/usr/lib/y-cruncher/Username.txt"

abinfo "Installing usage documentation ..."
install -vDm644 "Command Lines.txt" \
    "$PKGDIR/usr/share/doc/y-cruncher/USAGE"

abinfo "Installing license file ..."
install -vDm644 "Read Me.txt" \
    "$PKGDIR/usr/share/licenses/y-cruncher/LICENSE"
