PKGBUILDs/community/libdnet/PKGBUILD
2009-10-09 21:15:33 -05:00

28 lines
829 B
Bash

# Contributor: James Fryman <jfryman@gmail.com>
pkgname=libdnet
pkgver=1.12
pkgrel=3.1
pkgdesc="A simplified, portable interface to several low-level networking routines"
arch=(i686 x86_64)
makedepends=(python)
install=(libdnet.install)
license=("BSD")
url="http://code.google.com/p/libdnet/"
source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz)
md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9')
build() {
mkdir -p $startdir/pkg/usr/bin
[ $CARCH == "x86_64" ] && export CFLAGS=-fPIC
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make && make DESTDIR=$pkgdir install || return 1
cd python && \
python setup.py install --root=$startdir/pkg || return 1
install -D -m0644 ../LICENSE $startdir/pkg/usr/share/licenses/libdnet/license && \
mv $startdir/pkg/usr/man $startdir/pkg/usr/share/
}