blob: 819d9fb90fbd75e5c60959deb26a8d9ee430c7cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $Id: PKGBUILD 27071 2010-09-17 12:26:08Z schuay $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: James Fryman <jfryman@gmail.com>
pkgname=libdnet
pkgver=1.12
pkgrel=5
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')
source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz)
md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9')
build() {
mkdir -p $pkgdir/usr/bin
[ $CARCH == "x86_64" ] && export CFLAGS=-fPIC
[ $CARCH == "mips64el" ] && export CFLAGS+=-fPIC
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --target=${CHOST} --host=${CHOST} --build=${CHOST}
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/
}
|