aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-04-25 17:16:14 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-04-25 17:16:14 +0000
commitba7b5b6f67809c1b962f0051429a649f203f95af (patch)
treed4d437a28c35780e11b53cb64c870c8f5485d268
parentf73b60b467b0f33374437934aee002a3f9e7cc8d (diff)
downloadaports-ba7b5b6f67809c1b962f0051429a649f203f95af.tar.bz2
aports-ba7b5b6f67809c1b962f0051429a649f203f95af.tar.xz
main/policy-spf-fs: fixed builddir and patch applying
-rw-r--r--main/policyd-spf-fs/APKBUILD16
1 files changed, 7 insertions, 9 deletions
diff --git a/main/policyd-spf-fs/APKBUILD b/main/policyd-spf-fs/APKBUILD
index 74c2b0a550..b4a215dc70 100644
--- a/main/policyd-spf-fs/APKBUILD
+++ b/main/policyd-spf-fs/APKBUILD
@@ -14,25 +14,23 @@ subpackages=""
source="http://www.freestone.net/ftp/policyd-spf-fs/${pkgname}_$pkgver.tar.gz
policyd-spf-fs-localpolicy-fix.patch"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/${pkgname}_$pkgver
build() {
- mv "$srcdir"/${pkgname}_$pkgver "$srcdir"/$pkgname-$pkgver
- cd "$_builddir"
- for i in ../*.patch; do
- msg "Apply $i"
- patch -p1 < $i || return 1
- done
+ cd "$builddir"
sed -i -e 's/-lnsl//' Makefile
-
make CFLAGS+=-DHAVE_NS_TYPE || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
mkdir -p "$pkgdir"/usr/bin
make PREFIX="$pkgdir"/usr install
}
md5sums="781552698358fa94dc2df7258177776d policyd-spf-fs_23.tar.gz
3ec7873341af655ac940db3e62733060 policyd-spf-fs-localpolicy-fix.patch"
+sha256sums="be7de816d188a295da6dbfea753fb148de58a4999d7615d5550fd773897b22f3 policyd-spf-fs_23.tar.gz
+8f9da1d68113dacad18c4815d321baa3ccd97af89b6801f36e74faeadf35e2d0 policyd-spf-fs-localpolicy-fix.patch"
+sha512sums="2288ea42f25a20261a24ac33dc0ade0e6bdb4266a1f14db5d2cc2a0a5929aa0884c7e55578039d6205c6bb467e351a75231619a48bd0db80ed8c9988bde390f7 policyd-spf-fs_23.tar.gz
+89a90f717538f0440d7ad98a979f3b3209dc1d85751786dc5eae867c009db8902a65694614e105aea4ed79c64a8d57cae8fc9f8902b01fdd395bd95e50e53f78 policyd-spf-fs-localpolicy-fix.patch"