blob: 76b7edff0173fb2da838521770e17a4cacbc8965 (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=wrk
pkgver=4.0.1
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="ASL 2.0"
depends=""
depends_dev=""
makedepends="openssl-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wg/wrk/archive/$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
make -C "$_builddir" || 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="2520c55f197b5bb38b96ef2495b9af11 wrk-4.0.1.tar.gz"
sha256sums="c03bbc283836cb4b706eb6bfd18e724a8ce475e2c16154c13c6323a845b4327d wrk-4.0.1.tar.gz"
sha512sums="75e8e0d6f1e7929a43bb80fe65e1f2a36a169d19d839940ebe7dc9765a182e1adee3ba2873e97511ddabbd252b8447a69a92a2cfc584f05d65a2f8b31bbf4141 wrk-4.0.1.tar.gz"
|