void-packages/srcpkgs/2bwm-git/template
2014-12-13 19:08:45 +00:00

32 lines
746 B
Bash

# Template file for '2bwm-git'
pkgname=2bwm-git
version=20141213
revision=1
build_style=gnu-makefile
hostmakedepends="git"
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"
provides="2bwm-${version}_${revision}"
replaces="2bwm>=0"
do_fetch() {
local url="git://github.com/venam/2bwm"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
pre_build() {
sed -i '/#include <stdlib.h>/i#define _GNU_SOURCE' 2bwm.c
CC=$CC
}
do_install() {
vbin 2bwm
vbin hidden
vman 2bwm.man 2bwm.1
vman hidden.man hidden.1
vdoc README.md README
}