summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-03 10:38:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-03 10:38:23 +0000
commit2de9e73c507eabeaac32f0d42a8e9e8f6c015a7e (patch)
tree1c841be4a98d5e100be8f579a443b7907c1fe726 /main
parent247188c40f62d56ae3cac792041b6610c9a6fe0e (diff)
downloadaports-2de9e73c507eabeaac32f0d42a8e9e8f6c015a7e.tar.bz2
aports-2de9e73c507eabeaac32f0d42a8e9e8f6c015a7e.tar.xz
main/lockfile-progs: build fix. respect our CFLAGS
Diffstat (limited to 'main')
-rw-r--r--main/lockfile-progs/APKBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/lockfile-progs/APKBUILD b/main/lockfile-progs/APKBUILD
index a1c5aad9f..ce5d230c5 100644
--- a/main/lockfile-progs/APKBUILD
+++ b/main/lockfile-progs/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lockfile-progs
pkgver=0.1.15
-pkgrel=0
+pkgrel=1
pkgdesc="Programs for locking and unlocking files and mailboxes"
url="http://packages.debian.org/sid/lockfile-progs"
arch="all"
@@ -14,6 +14,12 @@ subpackages="$pkgname-doc"
source="http://ftp.debian.org/debian/pool/main/l/lockfile-progs/${pkgname}_$pkgver.tar.gz"
_builddir="$srcdir"/sid
+prepare() {
+ cd "$_builddir"
+ # allow us to verride CFLAGS by using 'CFLAGS ?= ...' instead of
+ # 'CFLAGS := ...' in the Makefile
+ sed -i -e '/^CFLAGS/s/:=/?=/' Makefile || return 1
+}
build() {
cd "$_builddir"