aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2016-01-25 15:22:51 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-02-02 14:43:12 +0000
commit95cde9993a9aa16d685de6b25e354cc84bf8943a (patch)
treee7818ce4bedcb279d5e5fc908fea01e2d19bf94b /testing
parentc0b453974299d940c1c0d30582a1d3f039817292 (diff)
downloadaports-95cde9993a9aa16d685de6b25e354cc84bf8943a.tar.bz2
aports-95cde9993a9aa16d685de6b25e354cc84bf8943a.tar.xz
testing/libsrs2: new aport
Sender Rewriting Scheme library, a part of the SPF/SRS protocol pair http://www.libsrs2.org
Diffstat (limited to 'testing')
-rw-r--r--testing/libsrs2/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/libsrs2/APKBUILD b/testing/libsrs2/APKBUILD
new file mode 100644
index 0000000000..c953f30203
--- /dev/null
+++ b/testing/libsrs2/APKBUILD
@@ -0,0 +1,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"