summaryrefslogtreecommitdiff
path: root/extra/libnet/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-05 01:22:33 -0800
committerroot <root@rshg054.dnsready.net>2012-11-05 01:22:33 -0800
commitc973e7aa43bb6c3bb4e25503eea40ddee63fcefd (patch)
treee85abee1aa1274c3d6a6f317c1a7f9df28e483f4 /extra/libnet/PKGBUILD
parent2030e810a5cfd4d3ff6e0f8930560c96f2990eb2 (diff)
Mon Nov 5 01:19:20 PST 2012
Diffstat (limited to 'extra/libnet/PKGBUILD')
-rw-r--r--extra/libnet/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/libnet/PKGBUILD b/extra/libnet/PKGBUILD
new file mode 100644
index 000000000..1c8cbb09c
--- /dev/null
+++ b/extra/libnet/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 170191 2012-11-04 17:11:22Z giovanni $
+# Maintainer:
+# Contributor: damir <damir@archlinux.org>
+
+pkgname=libnet
+pkgver=1.1.6
+pkgrel=1
+pkgdesc="A library which provides API for commonly used low-level net functions"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/libnet-dev/"
+license=('BSD')
+depends=('glibc' 'sh')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/libnet-dev/${pkgname}-${pkgver}.tar.gz")
+md5sums=('710296fe424a49344e5fcc0d09e53317')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make CFLAGS="${CFLAGS} -fPIC"
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 doc/COPYING \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}