void-packages/srcpkgs/adom/template

54 lines
1.4 KiB
Bash

# Template file for 'adom'
pkgname=adom
reverts=60_1
version=3.3.3
revision=1
wrksrc=${pkgname}
depends="ncurses"
short_desc="Roguelike game with a quest-centric, plot driven structure"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
homepage="http://www.adom.de"
_download_url="https://www.adom.de/home/download/current"
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=b74a310e4180633d75ef26742933796261b475252a4123c6c492ee4ce96d48dd
;;
i686)
distfiles="${_download_url}/adom_linux_debian_32_${version}.tar.gz"
checksum=20a900c425236205668db3fb052491d9c4fd3ff30765b1281802ff8a7cc374dd
;;
arm*)
distfiles="${_download_url}/adom_linux_arm_${version}.tar.gz"
checksum=8a674bf077f816856ceda3e6312c4721435fc529dbd0bc95897828c887755c6f
;;
*)
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
}