blob: 5c1a93bddf29a6d4f908825de55c603640c2cb0a (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
# Contributor: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Wilhelm Schuster <wilhelm [aT] wilhelm [.] re>
pkgname=kcgi
pkgver=0.13.3
pkgrel=1
pkgdesc="Minimal CGI and FastCGI library"
arch=('i686' 'x86_64')
url="http://kristaps.bsd.lv/kcgi/"
license=('custom:ISC')
depends=('glibc')
makedepends=('git' 'bmake' 'libseccomp' 'libmd')
_commit='e97370540b4917c78bf3405ddc821ffad8407d69'
source=("git+https://github.com/kristapsdz/kcgi.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd kcgi
git describe --tags | sed -e 's/VERSION_//' -e 's/_/./g'
}
prepare() {
cd kcgi
./configure \
PREFIX=/usr \
MANDIR=/usr/share/man \
SBINDIR=/usr/bin \
LDFLAGS="$LDFLAGS"
# This is a bit hackish, but it manages to add the linker flags for kfcgi.
# The "configure" script picks LDFLAGS from the environment, but then it
# does not use the variable in the target ¯\_(ツ)_/¯
echo 'LDADD_LIB_SOCKET += $(LDFLAGS)' >> Makefile.configure
# enable seccomp filter
sed -i 's/#CPPFLAGS/CPPFLAGS/' Makefile
}
build() {
cd kcgi
bmake
}
check() {
cd kcgi
bmake regress
}
package() {
cd kcgi
bmake DESTDIR="$pkgdir" install
strip -x --strip-unneeded "$pkgdir/usr/bin/kfcgi"
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
}
|