aboutsummaryrefslogtreecommitdiffstats
path: root/testing/darkhttpd/APKBUILD
blob: 8c7dc29d19f45846d2e477b9d529d63378a0fa40 (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
# Contributor: Alan Messias Cordeiro <alancordeiro@gmail.com>
# Maintainer: Alan Messias Cordeiro <alancordeiro@gmail.com>
pkgname=darkhttpd
pkgver=1.9
pkgrel=0
pkgdesc="A simple, single-threaded, static content webserver"
url="http://unix4lyfe.org/darkhttpd/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://unix4lyfe.org/darkhttpd/darkhttpd-$pkgver.tar.bz2"

_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"
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

md5sums="156f239af542028c3fb5c2248aa0db8d  darkhttpd-1.9.tar.bz2"
sha256sums="33ef622069dc167bcf85e46482388f2d6555e25796f64a6c5b215d939f2b41c8  darkhttpd-1.9.tar.bz2"
sha512sums="dba843a5cdd1825666f1a4f2ae578e694c69f6f3d4e72586ab6cb96ef35e5581295ccbdff80bb8f58aba91f4c3342fe213604cb8eac5cbbd49d34bc8a0d795e4  darkhttpd-1.9.tar.bz2"