12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- set -e
- program=dragora-installer
- version=20220213
- release=1
- pkgcategory=tools
- description="
- Installer of Dragora GNU/Linux-Libre.
- It contains the installer, help files and parts to perform
- a complete installation of Dragora GNU/Linux-Libre.
- "
- homepage=https://www.dragora.org
- license=GPLv3+
- build()
- {
-
- case $arch in
- amd64 | x32 )
- installer_arch=amd64
- ;;
- i586)
- installer_arch=i586
- ;;
- armhf)
- installer_arch=armhf
- ;;
- *)
- printf '%s\n' "" \
- "The Dragora installer will not be available for the architecture in" \
- "which it is being compiled. This package will not be produced." \
- "Please contact the developers at <dragora-users@nongnu.org>." \
- "" 1>&2
- sleep 7
- return 0
- ;;
- esac
- mkdir -p "${destdir}"/usr/sbin \
- "${destdir}"/usr/libexec/dragora-installer
- cp -p "${worktree}"/archive/dragora-installer/dragora-installer \
- "${destdir}"/usr/sbin/
- cp -p "${worktree}"/archive/dragora-installer/parts/* \
- "${destdir}"/usr/libexec/dragora-installer/
- for file in "${destdir}"/usr/sbin/* \
- "${destdir}"/usr/libexec/dragora-installer/*
- do
- sed -e "s|@PARTS@|/usr/libexec/dragora-installer/|g" \
- -e "s|@ARCH@|${installer_arch}|g" \
- -i "$file"
- done
- unset -v file
- chmod 755 "${destdir}"/usr/sbin/dragora-installer
- chmod 644 "${destdir}"/usr/libexec/dragora-installer/*
- unset -v installer_arch
- }
|