summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-23 22:50:12 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-23 23:00:23 -0400
commitfbb16d4c2356709d7923d96333e584ac5c618466 (patch)
treec368844105ffe249a4e41e0bdcb402488f2ba4c8
parent0bc0e1f49cd49e8fffd1ae07fe737127c55b30be (diff)
downloadabslibre-fbb16d4c2356709d7923d96333e584ac5c618466.tar.gz
abslibre-fbb16d4c2356709d7923d96333e584ac5c618466.tar.bz2
abslibre-fbb16d4c2356709d7923d96333e584ac5c618466.zip
add pcr/libsrs2
-rw-r--r--pcr/libsrs2/PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/pcr/libsrs2/PKGBUILD b/pcr/libsrs2/PKGBUILD
new file mode 100644
index 000000000..e68b5fb52
--- /dev/null
+++ b/pcr/libsrs2/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Luke Shumaker <lukeshu@parabola.nu>
+
+pkgbase=libsrs2
+pkgname=(libsrs2 libsrs2-python libsrs2-perl)
+pkgver=1.0.18
+pkgrel=1
+pkgdesc="Implementation of the Sender Rewriting Scheme (SRS) for SMTP forwarding"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://www.libsrs2.org/"
+license=('GPL2' 'BSD3')
+makedepends=(python perl-mail-srs)
+source=("http://www.libsrs2.org/srs/$pkgbase-$pkgver.tar.gz")
+sha1sums=('db9452e5207bb573eca4b3409c201f1e0275d300')
+
+
+build() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr
+ make -j1
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/perl"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ make check
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/perl"
+ make test
+}
+
+package_libsrs2() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING LICENSE.*
+}
+
+package_libsrs2-python() {
+ provides=(python-libsrs2)
+ depends=(libsrs2 python)
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/python"
+ python setup.py install --root="$pkgdir/" --optimize=1
+
+ cd ..
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING LICENSE.*
+}
+
+package_libsrs2-perl() {
+ license=('GPL' 'PerlArtistic')
+ provides=(perl-mail-srs-xs)
+ depends=(libsrs2 perl-mail-srs)
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/perl"
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim:set ts=2 sw=2 et: