aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/libsrs2/APKBUILD
blob: c953f302031a7f2419116b18ce65c6637f245bc5 (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
50
51
52
#Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=libsrs2
pkgver=1.0.18
pkgrel=0
pkgdesc="Sender Rewriting Scheme library, a part of the SPF/SRS protocol pair"
url="http://www.libsrs2.org"
arch="all"
license="LGPL2.1 BSD-2"
subpackages="$pkgname-dev $pkgname-tools"
makedepends=
depends=
source="http://www.libsrs2.org/srs/$pkgname-$pkgver.tar.gz
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--with-pic \
		|| return 1
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

tools() {
	pkgdesc="SRS command-line utility"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

md5sums="2178b8cf587eb6e65d4b9753c4a6c67d  libsrs2-1.0.18.tar.gz"
sha256sums="9d1191b705d7587a5886736899001d04168392bbb6ed6345a057ade50943a492  libsrs2-1.0.18.tar.gz"
sha512sums="b9c189caa227487e90566f65430345f09a3d545fc286a3eb0c445aee3a74905c1a9248ce78b36a7cfb6a2936f6cd1efbe99ba7b8df49a613a81c6435396f5422  libsrs2-1.0.18.tar.gz"