void-packages/srcpkgs/adom/template

55 lines
1.4 KiB
Bash

# Template file for 'adom'
pkgname=adom
reverts=60_1
version=3.0.6
revision=1
wrksrc=${pkgname}
depends="ncurses"
short_desc="A roguelike game with a quest-centric, plot driven structure"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
homepage="http://www.adom.de"
_download_url="http://www.ancardia.com/download"
nopie=yes
nostrip=yes
repository=nonfree
shlib_provides="libncurses.so.5"
case "${XBPS_TARGET_MACHINE}" in
*-musl)
broken="Platform not supported."
;;
x86_64)
distfiles="${_download_url}/adom_linux_debian_64_${version}.tar.gz"
checksum=588ddc3b680c8952fc1030747cca0047af64e48d1111eb014eaa094f44b6c9a5
;;
i686)
distfiles="${_download_url}/adom_linux_debian_32_${version}.tar.gz"
checksum=7deeaebb87be28f4e44c98384161783a6d93aa5dc4aa2a11559acf24a64dd934
;;
arm*)
_platform=arm
distfiles="http://www.ancardia.com/download/adom_linux_arm_${version}.tar.gz"
checksum=ade13c0884a81144510dd45249add80d421b868bfe673dcafa64d0de3e49d5cf
;;
*)
broken="Platform not supported."
;;
esac
do_install() {
vdoc docs/adomfaq.txt
vdoc docs/manual.txt
vdoc docs/readme1st.txt
vmkdir usr/lib/adom
vcopy adom usr/lib/adom
ln -s ../libncursesw.so.6 ${DESTDIR}/usr/lib/adom/libtinfo.so.5
ln -s ../libncursesw.so.6 ${DESTDIR}/usr/lib/adom/libncurses.so.5
vmkdir usr/bin
cat > ${DESTDIR}/usr/bin/adom << _EOF
#! /bin/sh
LD_LIBRARY_PATH=/usr/lib/adom /usr/lib/adom/adom "\$@"
_EOF
chmod 755 ${DESTDIR}/usr/bin/adom
}