2bwm-git: use our {C,LD}FLAGS; use vman/vdoc.

This commit is contained in:
Juan RP 2014-08-01 21:56:03 +02:00
parent cf7c96e1cd
commit b0386088c6
1 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# Template file for '2bwm-git'
pkgname=2bwm-git
version=20140801
revision=1
revision=2
build_style=gnu-makefile
hostmakedepends="git"
makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel xcb-util-wm-devel"
@ -21,15 +21,13 @@ do_fetch() {
pre_build() {
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
CC=$CC
}
do_install() {
vbin 2bwm
vbin hidden
install -Dm644 2bwm.man ${DESTDIR}/usr/share/man/man1/2bwm.1
install -Dm644 hidden.man ${DESTDIR}/usr/share/man/man1/hidden.1
vinstall README.md 644 usr/share/doc/2bwm README
vman 2bwm.man 2bwm.1
vman hidden.man hidden.1
vdoc README.md README
}