diff options
Diffstat (limited to 'main/dmenu/APKBUILD')
-rw-r--r-- | main/dmenu/APKBUILD | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/main/dmenu/APKBUILD b/main/dmenu/APKBUILD index 8368a624b..3e778fb6b 100644 --- a/main/dmenu/APKBUILD +++ b/main/dmenu/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> pkgname=dmenu pkgver=4.6 -pkgrel=0 +pkgrel=1 pkgdesc="Dynamic menu for X" url="http://tools.suckless.org/dmenu/" arch="all" @@ -14,27 +14,24 @@ install="" 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 \ FREETYPEINC=/usr/include/freetype2 \ - -C "$_builddir" || return 1 + -C "$builddir" || return 1 } package() { make DESTDIR=$pkgdir PREFIX=/usr \ - -C "$_builddir" install + -C "$builddir" install } md5sums="6fedf081133bc0725cb040b3b8ac3fac dmenu-4.6.tar.gz" |