void-packages/srcpkgs/xcmenu/template

27 lines
782 B
Bash

# 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="https://github.com/dindon-sournois/xcmenu"
distfiles="https://github.com/dindon-sournois/xcmenu/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
}