aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/httperf/APKBUILD
blob: c8d2e81bfc554c44b70fcb19ae37498cc6cf14a2 (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
# Contributor:
# Maintainer: Corentin Henry <corentinhenry@gmail.com>
pkgname=httperf
pkgver=0.9.0
pkgrel=0
pkgdesc="A tool for measuring web server performance."
url="https://github.com/httperf/httperf"
arch="x86_64"
license="GPL2"
depends=""
depends_dev=""
makedepends="openssl-dev"
install=""
subpackages="$pkgname-doc"
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz"

_builddir=$srcdir/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="2968c36b9ecf3d98fc1f2c1c9c0d9341  httperf-0.9.0.tar.gz"
sha256sums="e1a0bf56bcb746c04674c47b6cfa531fad24e45e9c6de02aea0d1c5f85a2bf1c  httperf-0.9.0.tar.gz"
sha512sums="58ea6a3b8a82181a89e5df22fdf18d5be8c7b533c404108702cc03fc727fb1599a43e620d83d41630f8a951d80e48ed99d0c3dd8469ee1fc7626449b777971e1  httperf-0.9.0.tar.gz"