aboutsummaryrefslogtreecommitdiffstats
path: root/testing/squark/APKBUILD
blob: ed5969525d3de8497995dc9d9c83dcadda8d1de9 (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
# Maintainer: Timo TerÃs <timo.teras@iki.fi>
pkgname=squark
pkgver=0.1
pkgrel=0
pkgdesc="Squark - Squid User Authentication and Rating Kit"
subpackages=
depends="haserl lua"
makedepends="net-snmp-dev cmph-dev lua pkgconfig"
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
	"
url="http://git.alpinelinux.org/cgit/squark/"
license=GPL-2

prepare() {
	cd "$srcdir"
	ln -s squark-master $pkgname-$pkgver
	cd "$srcdir/$pkgname-$pkgver"
	sed -i -e 's:-Werror::' Make.rules
	for i in $source; do
		case $i in
		*.patch) patch -p1 -i "$srcdir"/$i || return 1
		esac
	done
}

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make FULL_VERSION="$pkgver-r$pkgrel" || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make FULL_VERSION="$pkgver-r$pkgrel" DESTDIR="$pkgdir" install
}

md5sums="d7acc2d0f3a9ecff53b0b79eb6544eb6  squark-0.1.tar.bz2"