blob: a807c56cc5a3bfad56f74ff87facd358ac779c61 (
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
|
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: pandan <predrg@gmail.com>
pkgname=webdis
pkgver=0.1.3
pkgrel=1
pkgdesc='REST server for Redis data'
arch=('x86_64' 'i686')
url='http://webd.is/'
license=('BSD')
depends=('redis' 'libevent' 'jansson')
makedepends=('git')
install='webdis.install'
source=("webdis::git://github.com/nicolasff/webdis.git#tag=$pkgver"
'webdis.service'
'webdis.logrotate')
sha256sums=('SKIP'
'3c77e6968a0926c8b56755acab430f32c3e883f50b2f6f59d4dce2501bf247a7'
'f409fefee8533e60db6a6340c021b77b57f55cfcbf26ae4acdc3b672c7aa79b7')
pkgver() {
cd "${pkgname%-git}"
git describe --tags
}
build() {
make -C "${pkgname%-git}" LDFLAGS+="-levent -pthread" \
CFLAGS+="-I. -Ihttp-parser -Iformats -Ijansson/src"
}
package() {
cd "${pkgname%-git}"
make DESTDIR="$pkgdir" PREFIX=/usr install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/webdis/COPYING"
install -Dm644 "$srcdir/webdis.service" \
"$pkgdir/usr/lib/systemd/system/webdis.service"
install -Dm644 "$srcdir/webdis.logrotate" \
"$pkgdir/etc/logrotate.d/webdis"
}
# vim:set ts=2 sw=2 et:
|