aboutsummaryrefslogtreecommitdiffstats
path: root/community/wrk/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/wrk/APKBUILD')
-rw-r--r--community/wrk/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/wrk/APKBUILD b/community/wrk/APKBUILD
new file mode 100644
index 0000000000..76b7edff01
--- /dev/null
+++ b/community/wrk/APKBUILD
@@ -0,0 +1,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"