summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD19
2 files changed, 18 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2204a5f7ab9..0f6dad0b15b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,16 @@
pkgbase = libspf2-git
pkgdesc = Implementation of the Sender Policy Framework for SMTP authorization
- pkgver = 1
+ pkgver = 1.2.10.r189.79ed3e3
pkgrel = 1
url = http://www.libspf2.org/
- arch = i685
+ arch = i686
arch = x86_64
- license = GPL
- makedepends = gcc
+ license = LGPL
+ license = BSD
makedepends = git
provides = libspf2
+ source = git+https://github.com/shevek/libspf2.git
+ md5sums = SKIP
pkgname = libspf2-git
diff --git a/PKGBUILD b/PKGBUILD
index 6dde7840399..82470fb9846 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,22 +5,25 @@
# Maintainer: Your Name <youremail@domain.com>
pkgname=libspf2-git
-pkgver=1
+pkgver=1.2.10.r189.79ed3e3
pkgrel=1
pkgdesc="Implementation of the Sender Policy Framework for SMTP authorization"
-arch=('i685' 'x86_64')
+arch=('i686' 'x86_64')
url="http://www.libspf2.org/"
-license=('GPL')
-makedepends=('gcc' 'git')
+license=('LGPL' 'BSD')
+makedepends=('git')
provides=('libspf2')
+source=('git+https://github.com/shevek/libspf2.git')
+md5sums=('SKIP')
-prepare() {
- git clone https://github.com/shevek/libspf2.git
+pkgver() {
+ cd libspf2
+ printf "%s.r%s.%s" "$(./configure -V | head -1 | cut -d\ -f3)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd libspf2
- ./configure --prefix=/usr
+ ./configure --prefix=/usr --program-transform-name="s/^spf[dq].*/&.libspf2/"
make
}
@@ -28,4 +31,6 @@ build() {
package() {
cd libspf2
make DESTDIR="$pkgdir/" install
+
+ rm -v "$pkgdir"/usr/bin/*static*
}