aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-05-26 13:04:02 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-06-01 00:13:56 +0200
commit00a800905280d74abf2a92c3690724223e7c52c7 (patch)
treeb86933c23aa07cbc5553f83c4aa3b8c0d88f6031
parent0b9524e58720f774ea6d21b7e6b6a26e5d9b4557 (diff)
downloadaports-00a800905280d74abf2a92c3690724223e7c52c7.tar.bz2
aports-00a800905280d74abf2a92c3690724223e7c52c7.tar.xz
testing/slock: respect our CFLAGS and LDFLAGS
-rw-r--r--testing/slock/APKBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/testing/slock/APKBUILD b/testing/slock/APKBUILD
index 2a53f6cdeb..7f7b601f89 100644
--- a/testing/slock/APKBUILD
+++ b/testing/slock/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=slock
pkgver=1.3
-pkgrel=0
+pkgrel=1
pkgdesc="A simple screen locker for X"
url="http://tools.suckless.org/slock/"
arch="all"
@@ -15,25 +15,22 @@ options="suid"
subpackages="$pkgname-doc"
source="http://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare || return 1
+ sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \
+ -e '/LDFLAGS/{s/-s//;s/=/+=/}' \
+ "$builddir"/config.mk || return 1
}
build() {
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 \
- -C "$_builddir" || return 1
+ -C "$builddir" || return 1
}
package() {
make PREFIX=/usr DESTDIR="$pkgdir" \
- -C "$_builddir" install || return 1
+ -C "$builddir" install || return 1
}
md5sums="825aaeccba9b3b3c1f3d249d47c1396a slock-1.3.tar.gz"