aboutsummaryrefslogtreecommitdiffstats
path: root/main/dmenu
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-05-26 12:56:22 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-06-01 00:13:56 +0200
commitd5d77c6bddcc432ca8c7f236c0b255177484b923 (patch)
tree212d3d8a17d6d19befaa11add000a8a488fa7f22 /main/dmenu
parentc2b7b271e326df743f057bae203706af5b8efc92 (diff)
downloadaports-d5d77c6bddcc432ca8c7f236c0b255177484b923.tar.bz2
aports-d5d77c6bddcc432ca8c7f236c0b255177484b923.tar.xz
main/dmenu: respect our CFLAGS and LDFLAGS
Diffstat (limited to 'main/dmenu')
-rw-r--r--main/dmenu/APKBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/main/dmenu/APKBUILD b/main/dmenu/APKBUILD
index 8368a624b4..3e778fb6b0 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"