aboutsummaryrefslogtreecommitdiffstats
path: root/community/wmname
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-04-14 14:17:39 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2018-04-14 14:20:16 +0200
commit313df6036c66ad82f2157d34d90332399e97a34a (patch)
treeac76aeb2a7ccd49ceb86408ab18c63e7a9bfe217 /community/wmname
parent55f0d9bc88970bf465e25732f3bb8ea3bfa6747e (diff)
downloadaports-313df6036c66ad82f2157d34d90332399e97a34a.tar.bz2
aports-313df6036c66ad82f2157d34d90332399e97a34a.tar.xz
community/wmname: respect our CFLAGS
Also slightly improve the APKBUILD while being here.
Diffstat (limited to 'community/wmname')
-rw-r--r--community/wmname/APKBUILD14
1 files changed, 11 insertions, 3 deletions
diff --git a/community/wmname/APKBUILD b/community/wmname/APKBUILD
index 95709fa4b5..6b8c41ad22 100644
--- a/community/wmname/APKBUILD
+++ b/community/wmname/APKBUILD
@@ -1,16 +1,24 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=wmname
pkgver=0.1
-pkgrel=0
+pkgrel=1
pkgdesc="Sets the window manager name property of the root window"
url="https://tools.suckless.org/x/wmname"
arch="all"
license="MIT"
makedepends="libx11-dev"
-source="https://dl.suckless.org/tools/wmname-0.1.tar.gz"
+source="https://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ default_prepare
+ sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \
+ -e '/LDFLAGS/{s/-s//;s/=/+=/}' \
+ "$builddir"/config.mk
+}
+
build() {
cd "$builddir"
make
@@ -18,7 +26,7 @@ build() {
package() {
cd "$builddir"
- make PREFIX=/usr DESTDIR=$pkgdir install
+ make PREFIX=/usr DESTDIR="$pkgdir" install
}
md5sums="6903d299f84d335e529fbd2c1d6e49fe wmname-0.1.tar.gz"