summaryrefslogtreecommitdiffstats
path: root/base/whois
diff options
context:
space:
mode:
Diffstat (limited to 'base/whois')
-rw-r--r--base/whois/Pkgfile10
1 files changed, 6 insertions, 4 deletions
diff --git a/base/whois/Pkgfile b/base/whois/Pkgfile
index f9b1625f3..8c3f6f038 100644
--- a/base/whois/Pkgfile
+++ b/base/whois/Pkgfile
@@ -12,8 +12,10 @@ source=( ftp://ftp.debian.org/debian/pool/main/w/$name/$name\_$version.tar.gz)
build() {
cd $name-$version
- sed -i 's/install:/install-pos:/' po/Makefile
- make
- install -D -m 755 whois $PKG/usr/bin/whois
- install -D -m 644 whois.1 $PKG/usr/share/man/man1/whois.1
+ if [ "`uname -m`" == "x86_64" ]; then
+ sed -i "/_GNU_SOURCE/d" whois.c
+ fi
+ make prefix=/usr
+ make prefix=/usr BASEDIR=$PKG install-whois
+
}