summaryrefslogtreecommitdiff
path: root/community/libdnet/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libdnet/PKGBUILD')
-rw-r--r--community/libdnet/PKGBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/community/libdnet/PKGBUILD b/community/libdnet/PKGBUILD
index 433626ab2..c7dd280e1 100644
--- a/community/libdnet/PKGBUILD
+++ b/community/libdnet/PKGBUILD
@@ -1,15 +1,14 @@
-# $Id: PKGBUILD 58611 2011-11-16 15:32:03Z spupykin $
+# $Id: PKGBUILD 61173 2011-12-23 18:40:57Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: James Fryman <jfryman@gmail.com>
pkgname=libdnet
pkgver=1.12
-pkgrel=5
+pkgrel=6
pkgdesc="A simplified, portable interface to several low-level networking routines"
arch=(i686 x86_64 'mips64el')
makedepends=(python2)
optdepends=(python2)
-install=libdnet.install
license=("BSD")
url="http://code.google.com/p/libdnet/"
options=('!libtool')
@@ -17,18 +16,19 @@ source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz)
md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9')
build() {
- mkdir -p $pkgdir/usr/bin
+ cd $srcdir/$pkgname-$pkgver
- [ $CARCH == "x86_64" ] && export CFLAGS=-fPIC
- [ $CARCH == "mips64el" ] && export CFLAGS+=-fPIC
+ autoreconf -I config --force --install
+ ./configure --prefix=/usr
+ make
+}
+package() {
cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr --target=${CHOST} --host=${CHOST} --build=${CHOST}
- make && make DESTDIR=$pkgdir install
+ make DESTDIR="$pkgdir/" install
cd python && \
python2 setup.py install --root=$pkgdir
install -D -m0644 ../LICENSE $pkgdir/usr/share/licenses/libdnet/license
- mv $pkgdir/usr/man $startdir/pkg/usr/share/
}