diff options
author | Chocobo1 | 2017-08-25 09:28:37 +0800 |
---|---|---|
committer | Chocobo1 | 2017-08-25 09:39:11 +0800 |
commit | db9617cbbb8407c22f65c0f077dae9356e84cddf (patch) | |
tree | bc2a31ace58227d4c68360e3f6d70c61d530b0dc | |
download | aur-db9617cbbb8407c22f65c0f077dae9356e84cddf.tar.gz |
newpkg: iperf-git 1:abb57d0-1
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c64eb2c30b17 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = iperf-git + pkgdesc = A tool to measure maximum TCP bandwidth + pkgver = abb57d0 + pkgrel = 1 + epoch = 1 + url = https://sourceforge.net/projects/iperf2/ + arch = i686 + arch = x86_64 + license = custom + makedepends = git + depends = glibc + provides = iperf + conflicts = iperf + source = git+https://git.code.sf.net/p/iperf2/code + source = iperf-tcp.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/iperf-tcp.service?h=packages/iperf + source = iperf-udp.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/iperf-udp.service?h=packages/iperf + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = iperf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9725e87954c6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=iperf-git +pkgver=abb57d0 +pkgrel=1 +epoch=1 +pkgdesc="A tool to measure maximum TCP bandwidth" +arch=('i686' 'x86_64') +url="https://sourceforge.net/projects/iperf2/" +license=('custom') +depends=('glibc') +makedepends=('git') +provides=('iperf') +conflicts=('iperf') +source=("git+https://git.code.sf.net/p/iperf2/code" + "iperf-tcp.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/iperf-tcp.service?h=packages/iperf" + "iperf-udp.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/iperf-udp.service?h=packages/iperf") +sha256sums=('SKIP' + 'SKIP' + 'SKIP') + + +pkgver() { + cd "code" + + git describe --long --tags --always +} + +build() { + cd "code" + + autoreconf -fi + ./configure --prefix="/usr" + make +} + +package() { + cd "code" + + make DESTDIR="$pkgdir" install + install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/iperf/COPYING" + + install -Dm644 "$srcdir/iperf-tcp.service" "$pkgdir/usr/lib/systemd/system/iperf-tcp.service" + install -Dm644 "$srcdir/iperf-udp.service" "$pkgdir/usr/lib/systemd/system/iperf-udp.service" +} |