aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-05-26 13:02:42 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-06-01 00:13:56 +0200
commit0b9524e58720f774ea6d21b7e6b6a26e5d9b4557 (patch)
treef2acf73d3129ab4e51b2cbd2bfab28f0d955d21d /main
parentd5d77c6bddcc432ca8c7f236c0b255177484b923 (diff)
downloadaports-0b9524e58720f774ea6d21b7e6b6a26e5d9b4557.tar.bz2
aports-0b9524e58720f774ea6d21b7e6b6a26e5d9b4557.tar.xz
main/dwm: respect our CFLAGS and LDFLAGS
Diffstat (limited to 'main')
-rw-r--r--main/dwm/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/main/dwm/APKBUILD b/main/dwm/APKBUILD
index 1eb3cdab43..ae6863d2ba 100644
--- a/main/dwm/APKBUILD
+++ b/main/dwm/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=dwm
pkgver=6.1
-pkgrel=1
+pkgrel=2
pkgdesc="dwm - dynamic window manager"
url="http://dwm.suckless.org"
arch="all"
@@ -14,17 +14,24 @@ install=""
subpackages="$pkgname-doc"
source="http://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ 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 PREFIX=/usr DESTDIR="$pkgdir" \
- -C "$_builddir" install || return 1
+ -C "$builddir" install || return 1
}
md5sums="f0b6b1093b7207f89c2a90b848c008ec dwm-6.1.tar.gz"