[arch-commits] Commit in libnet/trunk (PKGBUILD)

Eric Bélanger eric at archlinux.org
Wed Feb 25 20:17:56 UTC 2009


    Date: Wednesday, February 25, 2009 @ 15:17:56
  Author: eric
Revision: 27771

upgpkg: libnet 1.1.2.1-2
    added arch field, added license, added man pages, compiled with fPIC (needed for libnids)

Modified:
  libnet/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-02-25 20:15:50 UTC (rev 27770)
+++ PKGBUILD	2009-02-25 20:17:56 UTC (rev 27771)
@@ -2,23 +2,23 @@
 # Maintainer: damir <damir at archlinux.org>
 
 pkgname=libnet
-origver=1.1.2.1
 pkgver=1.1.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A library which provides API for commonly used low-level net functions."
+arch=('i686' 'x86_64')
 url="http://www.packetfactory.net/libnet"
+license=('BSD')
 depends=('glibc')
-source=($url/dist/$pkgname-$origver.tar.gz)
+source=(http://www.packetfactory.net/libnet/dist/$pkgname-$pkgver.tar.gz)
+md5sums=('be845c41170d72c7db524f3411b50256')
 
-
-
 build() {
-        cd $startdir/src/$pkgname
-        ./configure --prefix=/usr
-        make || return 1
-        make DESTDIR=$startdir/pkg install || return 1
-        install -D -m755 libnet-config \
-                $startdir/pkg/usr/bin/libnet-config
+  cd $srcdir/$pkgname
+  ./configure --prefix=/usr || return 1
+  make CFLAGS="${CFLAGS} -fPIC"  || return 1
+  make DESTDIR=$pkgdir install install-man || return 1
+  install -D -m755 libnet-config $pkgdir/usr/bin/libnet-config || return 1
+  install -d $pkgdir/usr/share/man/man3
+  install -m644 doc/man/man3/* $pkgdir/usr/share/man/man3/
+  install -D -m644 doc/COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1
 }
-
-md5sums=('be845c41170d72c7db524f3411b50256')




More information about the arch-commits mailing list