aboutsummaryrefslogtreecommitdiffstats
path: root/community/wmname/APKBUILD
blob: 6b8c41ad22787020cde42f2a621d2f67e97bafd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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=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/$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
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

md5sums="6903d299f84d335e529fbd2c1d6e49fe  wmname-0.1.tar.gz"
sha256sums="559ad188b2913167dcbb37ecfbb7ed474a7ec4bbcb0129d8d5d08cb9208d02c5  wmname-0.1.tar.gz"
sha512sums="e57100f8de2579f4090c0aaf5a5b134d03bcbcdca5c6d005b12ce39ad322d96651bb13d151cf259e935e6c50e7b21bde43a4eace112be80983a92f92b99f192f  wmname-0.1.tar.gz"