blob: 028bbecbef03a4201e5950e25c26dc504542112a (
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
|
# Maintainer: Tpaefawzen <960klo@gmail.com>
pkgname=merecat-git
pkgver=r1001.1d946ed
pkgrel=1
pkgdesc="Small and made-easy HTTP/HTTPS server based on Jef Poskanzer's thttpd"
arch=(x86_64)
url="https://github.com/troglobit/merecat"
license=('custom:2BSD')
groups=()
depends=('confuse')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("$pkgname"::git+https://github.com/troglobit/merecat
$pkgname.no-php-cgi.patch)
noextract=()
sha256sums=('SKIP'
fa06dbec48572849d3c488b594229154179ed89667a044528ec3fdece6816f99)
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$pkgname"
if ! type php-cgi; then
patch -p1 -i "$srcdir/$pkgname.no-php-cgi.patch"
fi
}
build() {
cd "$srcdir/$pkgname"
./autogen.sh
WEBDIR=/usr/share/merecat/www ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc
make
}
check() {
cd "$srcdir/$pkgname"
make -k check
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" install
install -dm755 "$pkgdir/usr/share/licenses/merecat"
ln -s ../../doc/merecat/LICENSE "$pkgdir/usr/share/licenses/merecat/LICENSE"
}
|