void-packages/srcpkgs/2bwm-git/template

35 lines
947 B
Text
Raw Normal View History

2013-09-28 11:20:19 +00:00
# Template file for '2bwm-git'
pkgname=2bwm-git
2014-07-05 15:50:26 +00:00
version=20140705
revision=1
2014-05-01 11:42:41 +00:00
build_style=gnu-makefile
2013-09-28 11:20:19 +00:00
makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel xcb-util-wm-devel"
short_desc="Fast floating window manager"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="ISC"
homepage="https://github.com/venam/2bwm"
2014-05-31 11:01:08 +00:00
provides="2bwm-${version}_${revision}"
replaces="2bwm>=0"
2013-09-28 11:20:19 +00:00
do_fetch() {
local url="git://github.com/venam/2bwm"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
2014-05-01 11:42:41 +00:00
pre_build() {
2013-09-28 11:20:19 +00:00
cp ${FILESDIR}/config.h config.h
sed -i '/#include <stdlib.h>/i#define _GNU_SOURCE' 2bwm.c
sed -i 's/^CFLAGS+=/CFLAGS=/' Makefile
sed -i 's/^LDFLAGS+=/LDFLAGS=/' Makefile
2014-05-01 11:42:41 +00:00
CC=$CC
2013-09-28 11:20:19 +00:00
}
do_install() {
2014-07-05 15:50:26 +00:00
vbin 2bwm
vbin hidden
2013-09-28 11:20:19 +00:00
install -Dm644 2bwm.man ${DESTDIR}/usr/share/man/man1/2bwm.1
install -Dm644 hidden.man ${DESTDIR}/usr/share/man/man1/hidden.1
2014-05-01 11:42:41 +00:00
vinstall README.md 644 usr/share/doc/2bwm README
2013-09-28 11:20:19 +00:00
}