~dricottone/huttese-apk

ref: 810a2724a8a0be6f06e96c23c42cb95e2626dc3c huttese-apk/sr.ht/fcgiwrap/APKBUILD -rw-r--r-- 1.3 KiB
810a2724 — Drew DeVault Update submit-builds 5 years ago
                                                                                
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=fcgiwrap
pkgver=1.1.0
pkgrel=3
pkgdesc="Simple server for running CGI applications over FastCGI"
url="https://github.com/gnosek/fcgiwrap"
arch="all"
license="MIT"
pkgusers="fcgiwrap"
pkggroups="www-data"
install="$pkgname.pre-install"
makedepends="$depends_dev autoconf libtool automake fcgi-dev"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gnosek/$pkgname/archive/$pkgver.tar.gz
	$pkgname.initd"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	autoreconf --install
	CFLAGS="$CFLAGS -Wno-implicit-fallthrough" \
	./configure --prefix=/usr \
		--mandir=/share/man \
		--sbindir=/bin
	make
}

check() {
	cd "$builddir"
	./fcgiwrap -h >/dev/null
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/var/run/fcgiwrap
	make DESTDIR="$pkgdir" install
	install -Dm755 $srcdir/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	chown $pkgusers.$pkggroups "$pkgdir"/var/run/fcgiwrap
}

sha512sums="b8d35762d1d3c94a67602290b0092f0c38cffbbcd3dbc16597abf8b92172909b04450c238de2e430e841a17dd47fdd48d6a001f77539966980ef1af61e447ddc  fcgiwrap-1.1.0.tar.gz
96cd7febc4da598762baf32a7864cabbd7dd9bc019107f41b588bcf5b9b9064f6efa0d0f3721ff352b92beabe2e8ae11e84615c5185bf09b7f8aa07a59031ca9  fcgiwrap.initd"