summaryrefslogtreecommitdiffstats
path: root/main/squark/APKBUILD
blob: af4fc402cbae8d79998b18ab8bdc0d7f8b67635b (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
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=squark
pkgver=0.6
pkgrel=2
pkgdesc="Squark - Squid User Authentication and Rating Kit"
subpackages=
depends="haserl"
makedepends="net-snmp-dev cmph-dev lua-dev"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz
	0001-fix-missing-symbols-from-lua-module.patch
	0002-filter-default-path-is-const-and-thus-non-writable.patch
	"
url="http://git.alpinelinux.org/cgit/squark/"
arch="all"
license=GPL-2
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="8e34e77741ec043362b5554b58206ae1  squark-0.6.tar.xz
7d67e8e8b82419fcea1f55673e3db77c  0001-fix-missing-symbols-from-lua-module.patch
9e2e559ba0ced976937d36714e61760e  0002-filter-default-path-is-const-and-thus-non-writable.patch"
sha256sums="6349f7b2d840712ef3f0f0eb32cbed4d53ede586a06f42807f1cfda888fd2952  squark-0.6.tar.xz
91627ec0b38029f1397f06ebb73d8ec737a4af6ae3cdc40d77f61cac80930ea8  0001-fix-missing-symbols-from-lua-module.patch
e5c71e52a1f1f6e5d3caf6d9e0289bb8d2aa9a7f8b1bf33cdd03d85adf823859  0002-filter-default-path-is-const-and-thus-non-writable.patch"
sha512sums="ba671d961b1b2d3026625b21336369e3b3dedc867dd8f68e85db3badcdb13afae8565a068e9337de6ba909c8780ff5ff0e59e4bab42f7f02a415f396654ead19  squark-0.6.tar.xz
89583bcdc94ed45f0e09500e0b73946243d07b2d16b65188b29ef91c1162a8fc15074d5d62b29951f7a9ca332cdddf3f701dbc9ca948b6be170c178e438a16a5  0001-fix-missing-symbols-from-lua-module.patch
8b28efaa75473e583121be8d76513e84d343c2a33431ede8c2b2b54610b0b1505fd58782de883ae3e9770cdba5db6b1af406a207f7b94969122ce31cb497f1bf  0002-filter-default-path-is-const-and-thus-non-writable.patch"