blob: 49776b7d0b8d593eedddc7d7e0072e759d4cafce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=wrk
pkgver=4.0.0
pkgrel=0
pkgdesc="wrk is a modern HTTP benchmarking tool"
url="https://github.com/wg/wrk"
# requires -march=i586 to build on x86
arch="x86_64"
license="Apache v2"
makedepends="$depends_dev openssl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wg/wrk/archive/$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make || return 1
}
package() {
cd "$_builddir"
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/share/doc/$pkgname/scripts
install -m755 -D $pkgname "$pkgdir"/usr/bin/$pkgname
install -m644 -D README "$pkgdir"/usr/share/doc/$pkgname/
install -m644 -D LICENSE "$pkgdir"/usr/share/doc/$pkgname/
install -m644 -D NOTICE "$pkgdir"/usr/share/doc/$pkgname/
install -m755 -D scripts/* "$pkgdir"/usr/share/doc/$pkgname/scripts/
}
md5sums="d0bd10a6195a16be804783565861e02b wrk-4.0.0.tar.gz"
sha256sums="8fa8fb05f4663d03c1ca7804367eb602882f9630441bd56e8e9aaf3a2bd26067 wrk-4.0.0.tar.gz"
sha512sums="c9d318fec64c514f1232fcfd7b624dff9ac91e34a7e379b3d97c7b4e948ba1d8b9d115d7789d778db388d7af1ba4a7b839c9f2f3c930b305086b00c6eeca871d wrk-4.0.0.tar.gz"
|