From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/libdnet/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 community/libdnet/PKGBUILD (limited to 'community/libdnet/PKGBUILD') diff --git a/community/libdnet/PKGBUILD b/community/libdnet/PKGBUILD new file mode 100644 index 000000000..70cf6e437 --- /dev/null +++ b/community/libdnet/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 27071 2010-09-17 12:26:08Z schuay $ +# Maintainer: Sergej Pupykin +# Contributor: James Fryman + +pkgname=libdnet +pkgver=1.12 +pkgrel=5 +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') +source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz) +md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9') + +build() { + mkdir -p $pkgdir/usr/bin + + [ $CARCH == "x86_64" ] && export CFLAGS=-fPIC + + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr + make && 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/ +} -- cgit v1.2.3-54-g00ecf