From 2d2e64c7c198ff82ea6e306f7673168dcf5ddca7 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 24 Dec 2011 23:14:50 +0000 Subject: Sat Dec 24 23:14:50 UTC 2011 --- community/libdnet/PKGBUILD | 17 +++++++++-------- community/libdnet/libdnet.install | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'community/libdnet') diff --git a/community/libdnet/PKGBUILD b/community/libdnet/PKGBUILD index 0e9854553..3c4c0f057 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 # Contributor: James Fryman pkgname=libdnet pkgver=1.12 -pkgrel=5 +pkgrel=6 pkgdesc="A simplified, portable interface to several low-level networking routines" arch=(i686 x86_64) makedepends=(python2) optdepends=(python2) -install=libdnet.install license=("BSD") url="http://code.google.com/p/libdnet/" options=('!libtool') @@ -17,17 +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 + autoreconf -I config --force --install + ./configure --prefix=/usr + make +} +package() { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr - 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/ } diff --git a/community/libdnet/libdnet.install b/community/libdnet/libdnet.install index cb8146f24..3264378fd 100644 --- a/community/libdnet/libdnet.install +++ b/community/libdnet/libdnet.install @@ -1,3 +1,3 @@ post_install() { - /sbin/ldconfig + /sbin/ldconfig } -- cgit v1.2.3-54-g00ecf