aboutsummaryrefslogtreecommitdiffstats
path: root/main/squark/APKBUILD
blob: f6cea311e4ef1e7c110294f98ed8c96adeaa64a9 (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
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=squark
pkgver=0.6.1
pkgrel=1
pkgdesc="Squark - Squid User Authentication and Rating Kit"
subpackages="$pkgname-dbg $pkgname-doc"
depends="haserl"
makedepends="net-snmp-dev cmph-dev lua-dev"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz
	"
url="https://git.alpinelinux.org/cgit/squark/"
arch="all"
license=GPL2
install="$pkgname.post-install"

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
	sed -i -e 's:lua5.1:lua:g' "$srcdir"/"$pkgname-$pkgver"/src/Makefile
}

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="9a0140c732d62aabf014f93c697c525a  squark-0.6.1.tar.xz"
sha256sums="3a649fde2461c66c900ec02d6fac44207e903b3276878ae9aafb54751647af76  squark-0.6.1.tar.xz"
sha512sums="f04b0cf5e300bab43bbc768a30cb8339e8a026d6fc090ccf3c98c0fa932a4cf3ef2ed11e5b5b94a68e1f7577fa3875cd537c6ed535e2af012b6d464b20123f3e  squark-0.6.1.tar.xz"