cwm: fix CFLAGS, LDFLAGS, clean up.

Adopted.
This commit is contained in:
Christian Neukirchen 2016-05-27 18:40:23 +02:00
parent e41d5ab478
commit 4dc6b5733e

View file

@ -1,24 +1,23 @@
# Template file for 'cwm # Template file for 'cwm
pkgname=cwm pkgname=cwm
version=5.6 version=5.6
revision=2 revision=3
build_style=gnu-makefile
hostmakedepends="pkg-config bison" hostmakedepends="pkg-config bison"
makedepends="fontconfig-devel libXft-devel libXinerama-devel libXrandr-devel libX11-devel" makedepends="fontconfig-devel libXft-devel libXinerama-devel libXrandr-devel libX11-devel"
short_desc="Lightweight and efficient window manager for X11" short_desc="Lightweight and efficient window manager for X11"
maintainer='Juan RP <xtraeme@voidlinux.eu>' maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="ISC" license="ISC"
homepage="http://www.openbsd.org/cgi-bin/man.cgi?query=cwm&manpath=OpenBSD+Current&format=html" homepage="http://www.openbsd.org/cgi-bin/man.cgi?query=cwm&manpath=OpenBSD+Current&format=html"
distfiles="https://github.com/chneukirchen/cwm/archive/v${version}.tar.gz" distfiles="https://github.com/chneukirchen/cwm/archive/v${version}.tar.gz"
checksum="006320bb1716cc0f93bac5634dcccd01f21d468263b5fc9d1be2dd11078a0625" checksum="006320bb1716cc0f93bac5634dcccd01f21d468263b5fc9d1be2dd11078a0625"
replaces="cwm-git>=0" replaces="cwm-git>=0"
do_build() { post_extract() {
sed -i 's/^CPPFLAGS+=/CPPFLAGS=/' Makefile
sed -i 's/^LDFLAGS+=/LDFLAGS=/' Makefile
sed -i 's,WAIT_ANY,-1,g' *.c sed -i 's,WAIT_ANY,-1,g' *.c
make CC=$CC sed -i 's/^\(LD\|CPP\)FLAGS/override &/' Makefile
sed '/\*\//q' calmwm.c >LICENSE
} }
do_install() { post_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install vlicense LICENSE
vinstall README 644 usr/share/doc/cwm
} }