aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-26 15:25:52 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-26 20:12:53 +0000
commitbc400e4a65bf92b1faf753c3d3524bbded82c86f (patch)
tree0b64d76e6c516745bb725d682148884ba7aff4df
parentc2d60ef62cfddd817d86b9e1b831906157efd190 (diff)
downloadaports-bc400e4a65bf92b1faf753c3d3524bbded82c86f.tar.gz
aports-bc400e4a65bf92b1faf753c3d3524bbded82c86f.tar.bz2
aports-bc400e4a65bf92b1faf753c3d3524bbded82c86f.tar.xz
community/nethack: upgrade to 3.6.6
-rw-r--r--community/nethack/APKBUILD22
1 files changed, 14 insertions, 8 deletions
diff --git a/community/nethack/APKBUILD b/community/nethack/APKBUILD
index ef4141c58d..41609a0dc6 100644
--- a/community/nethack/APKBUILD
+++ b/community/nethack/APKBUILD
@@ -1,20 +1,28 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
# Based on the Arch Linux package
pkgname=nethack
-pkgver=3.6.2
+pkgver=3.6.6
pkgrel=0
pkgdesc="A single player dungeon exploration game"
+options="suid"
url="https://www.nethack.org/index.html"
arch="all"
license="NGPL"
makedepends="ncurses-dev linux-headers bison flex"
subpackages="$pkgname-doc"
-source="http://downloads.sourceforge.net/$pkgname/$pkgname-${pkgver//.}-src.tgz"
-builddir="$srcdir/$pkgname-$pkgver"
-options="suid"
+source="https://www.nethack.org/download/$pkgver/nethack-${pkgver//.}-src.tgz"
+builddir="$srcdir/NetHack-NetHack-${pkgver}_Released"
+
+# secfixes:
+# 3.6.4-r0:
+# - CVE-2019-19905
prepare() {
- cd "$builddir"
+ default_prepare
+
+ # Fix linking against debian-specific tinfo
+ sed -e 's|^WINTTYLIB.*|WINTTYLIB = -lncurses|' -i sys/unix/hints/linux
# Fix nonstandard cp usage
sed -e 's/cp -n/cp/g' -i sys/unix/hints/linux
# Fix glibc issue
@@ -50,12 +58,10 @@ build() {
}
check() {
- cd "$builddir"
NETHACKDIR=/tmp ./src/nethack --version
}
package() {
- cd "$builddir"
install -dm755 $pkgdir/usr/share/man/man6
install -dm755 $pkgdir/usr/share/doc/nethack
install -dm775 $pkgdir/var/games/
@@ -73,4 +79,4 @@ package() {
install -Dm644 doc/Guidebook.txt $pkgdir/usr/share/doc/nethack/Guidebook.txt
}
-sha512sums="e865f21298ffdf67301b5b6ca91f2e762011cc35b55f80603fff014b48f9724d67671168a898abb2171879906a65564d8eb59d272bb5a9f8bf957f074e3c105e nethack-362-src.tgz"
+sha512sums="579fde93a37a1b5df637d5bac2601194beeb455c175fbe3ef89342122c8567bb8221ce60d8a6168e6b45c67ade7d7b09c86bf202c8cbe2d6294d276be3e53055 nethack-366-src.tgz"