parent
fb6a252b4a
commit
29c0393a78
1 changed files with 34 additions and 15 deletions
|
@ -1,6 +1,7 @@
|
|||
# Template file for 'adom'
|
||||
pkgname=adom
|
||||
version=60
|
||||
reverts=60_1
|
||||
version=3.0.6
|
||||
revision=1
|
||||
wrksrc=${pkgname}
|
||||
depends="ncurses"
|
||||
|
@ -12,24 +13,42 @@ _download_url="http://www.ancardia.com/download"
|
|||
nopie=yes
|
||||
nostrip=yes
|
||||
repository=nonfree
|
||||
shlib_provides="libncurses.so.5"
|
||||
|
||||
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
|
||||
distfiles="${_download_url}/adom_linux_debian_64_r${version}_pub.tar.gz"
|
||||
checksum=e36ec001566cb8bc4c5857dcfa8839b0797888be2c1e3b8476e8c5a9bb93ce2c
|
||||
|
||||
elif [ "${XBPS_TARGET_MACHINE}" = "i686" ];then
|
||||
distfiles="${_download_url}/adom_linux_debian_32_r${version}_pub.tar.gz"
|
||||
checksum=20b1aba07ac7d90a9437937ae5714fbb0199d2ba460d3b18473370baca665554
|
||||
|
||||
else
|
||||
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_r${version}_pub.tar.gz"
|
||||
checksum=85fd4dbcf127d41c4b44abdbcf13b7efdb0bfa8777efa1659a4071d20cbd80d5
|
||||
fi
|
||||
distfiles="http://www.ancardia.com/download/adom_linux_arm_${version}.tar.gz"
|
||||
checksum=ade13c0884a81144510dd45249add80d421b868bfe673dcafa64d0de3e49d5cf
|
||||
;;
|
||||
*)
|
||||
broken="Platform not supported."
|
||||
;;
|
||||
esac
|
||||
|
||||
do_install() {
|
||||
vbin adom
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue