aboutsummaryrefslogblamecommitdiffstats
path: root/main/squark/APKBUILD
blob: 9a0ed294d5617bb94bb71aba98a10c88dd05c740 (plain) (tree)
1
2
3

                                            
          

































                                                                                      
                                                              
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=squark
pkgver=0.4
pkgrel=0
pkgdesc="Squark - Squid User Authentication and Rating Kit"
subpackages=
depends="haserl lua"
makedepends="net-snmp-dev cmph-dev lua-dev pkgconfig"
source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2
	"
url="http://git.alpinelinux.org/cgit/squark/"
arch="all"
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
	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="ddbf1426a96dd61384bbf2789039527e  squark-0.4.tar.bz2"