diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/slock/APKBUILD | 19 |
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" |