summaryrefslogtreecommitdiff
path: root/community/trickle/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/trickle/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/trickle/PKGBUILD')
-rw-r--r--community/trickle/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/trickle/PKGBUILD b/community/trickle/PKGBUILD
new file mode 100644
index 000000000..018c21816
--- /dev/null
+++ b/community/trickle/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 80164 2012-11-17 02:17:02Z kkeen $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor Romain Bouchaud-Leduc <r0m1.bl@camaris.org>
+
+pkgname=trickle
+pkgver=1.07
+pkgrel=7
+pkgdesc="Lightweight userspace bandwidth shaper"
+arch=('i686' 'x86_64')
+url="http://monkey.org/~marius/trickle"
+license=('BSD')
+depends=('libevent')
+source=("http://monkey.org/~marius/trickle/${pkgname}-${pkgver}.tar.gz")
+md5sums=('860ebc4abbbd82957c20a28bd9390d7d')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # FS#23194
+ sed -i 's|^_select(int|select(int|' trickle-overload.c
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man
+ sed -i "s|.*in_addr_t.*||g" config.h
+ make -j1
+}
+
+package(){
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}