# Template file for 'xcmenu'
pkgname=xcmenu
version=0.1.0
revision=3
build_style=gnu-makefile
makedepends="zlib-devel libxcb-devel"
depends="dmenu"
short_desc="Lightweight clipboard manager for X"
maintainer="Duncaen <mail@duncano.de>"
license="WTFPL"
homepage="http://github.com/Cloudef/${pkgname}"
distfiles="https://github.com/Cloudef/${pkgname}/archive/v${version}.tar.gz"
checksum="149e95ce715c77eaa179b4b8df6c499a4570915a5a094b49a7d914e0073097f1"
replaces="xcmenu-git>=0"

pre_build() {
	sed -i '15i #include <fcntl.h>' xcmenu.c
	sed -i 's|-Os ||g' config.mk
	sed -i 's|^CPPFLAGS *=|override CPPFLAGS +=|g' config.mk
	sed -i 's|^CFLAGS *=|override CFLAGS +=|g' config.mk
	sed -i 's|^LDFLAGS *=|override LDFLAGS +=|g' config.mk
}

post_install() {
	vlicense LICENSE
}
