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

andyrtr at archlinux.org andyrtr at archlinux.org
Sun Dec 19 15:40:24 UTC 2010


    Date: Sunday, December 19, 2010 @ 10:40:24
  Author: andyrtr
Revision: 103439

upgpkg: libpcap 1.1.1-2
fix #21643; PKGBUILD cleanup; add sh dependency; drop the static library

Modified:
  libpcap/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-12-19 15:22:46 UTC (rev 103438)
+++ PKGBUILD	2010-12-19 15:40:24 UTC (rev 103439)
@@ -3,12 +3,12 @@
 
 pkgname=libpcap
 pkgver=1.1.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A system-independent interface for user-level packet capture"
 arch=('i686' 'x86_64')
 url="http://www.tcpdump.org/"
 license=('BSD')
-depends=('glibc' 'libnl')
+depends=('glibc' 'libnl' 'sh')
 makedepends=('flex')
 source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz)
 sha256sums=('508cca15547e55d1318498b838456a21770c450beb2dc7d7d4a96d90816e5a85')
@@ -16,13 +16,16 @@
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
   ./configure --prefix=/usr --enable-ipv6
-  make || return 1
-  make shared || return 1
+  make
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  install -d -m755 ${pkgdir}/usr/bin
+  make DESTDIR=${pkgdir} install
+  # remove static library
+  rm -rf ${pkgdir}/usr/lib/libpcap.a
   
-  install -d -m755 ${pkgdir}/usr/bin
-  make DESTDIR=${pkgdir} install install-shared || return 1
-  ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so.1
-  ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so
   # backwards compatibility, programs often look for net/bpf.h
   mkdir -p ${pkgdir}/usr/include/net
   cd ${pkgdir}/usr/include/net




More information about the arch-commits mailing list