summaryrefslogtreecommitdiff
path: root/community/hawknl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/hawknl/PKGBUILD')
-rw-r--r--community/hawknl/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/community/hawknl/PKGBUILD b/community/hawknl/PKGBUILD
index ab40d900f..f10df654a 100644
--- a/community/hawknl/PKGBUILD
+++ b/community/hawknl/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 27661 2010-09-26 18:25:05Z svenstaro $
+# $Id: PKGBUILD 64750 2012-02-18 03:56:17Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Drew Desai <alerante@yahoo.com>
@@ -6,7 +6,7 @@
pkgname=hawknl
pkgver=1.68
-pkgrel=2
+pkgrel=3
pkgdesc="An open source game oriented network API"
arch=('i686' 'x86_64')
url="http://www.hawksoft.com/hawknl/"
@@ -19,12 +19,18 @@ md5sums=('2e4971d422b8c5cadfe2a85527ff2fcf'
build() {
cd "$srcdir"/$pkgname$pkgver
- patch -Np0 -i ../$pkgname.patch || return 1
- make -f makefile.linux || return 1
+
+ patch -Np0 -i ../$pkgname.patch
+ make -f makefile.linux
install -m755 -d "$pkgdir"/usr/{lib,include}
+}
+
+package() {
+ cd "$srcdir"/$pkgname$pkgver
+
make -f makefile.linux \
LIBDIR="$pkgdir"/usr/lib \
INCDIR="$pkgdir"/usr/include \
OPTFLAGS="-D_GNU_SOURCE -D_REENTRANT" \
- install || return 1
+ install
}