mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 04:44:57 +02:00
Add special handling for MIT as required by https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package#license
34 lines
958 B
Text
34 lines
958 B
Text
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
|
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
pkgname=wmname
|
|
pkgver=0.1
|
|
pkgrel=4
|
|
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"
|
|
|
|
options="!check" # no unit tests provided
|
|
|
|
prepare() {
|
|
default_prepare
|
|
sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \
|
|
-e '/LDFLAGS/{s/-s//;s/=/+=/}' \
|
|
-e 's/-std=c99/-std=gnu99/' \
|
|
"$builddir"/config.mk
|
|
}
|
|
|
|
build() {
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="e57100f8de2579f4090c0aaf5a5b134d03bcbcdca5c6d005b12ce39ad322d96651bb13d151cf259e935e6c50e7b21bde43a4eace112be80983a92f92b99f192f wmname-0.1.tar.gz"
|