mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
2bwm-git: use our {C,LD}FLAGS; use vman/vdoc.
This commit is contained in:
parent
cf7c96e1cd
commit
b0386088c6
1 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for '2bwm-git'
|
# Template file for '2bwm-git'
|
||||||
pkgname=2bwm-git
|
pkgname=2bwm-git
|
||||||
version=20140801
|
version=20140801
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="git"
|
hostmakedepends="git"
|
||||||
makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel xcb-util-wm-devel"
|
makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel xcb-util-wm-devel"
|
||||||
|
@ -21,15 +21,13 @@ do_fetch() {
|
||||||
pre_build() {
|
pre_build() {
|
||||||
cp ${FILESDIR}/config.h config.h
|
cp ${FILESDIR}/config.h config.h
|
||||||
sed -i '/#include <stdlib.h>/i#define _GNU_SOURCE' 2bwm.c
|
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
|
CC=$CC
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin 2bwm
|
vbin 2bwm
|
||||||
vbin hidden
|
vbin hidden
|
||||||
install -Dm644 2bwm.man ${DESTDIR}/usr/share/man/man1/2bwm.1
|
vman 2bwm.man 2bwm.1
|
||||||
install -Dm644 hidden.man ${DESTDIR}/usr/share/man/man1/hidden.1
|
vman hidden.man hidden.1
|
||||||
vinstall README.md 644 usr/share/doc/2bwm README
|
vdoc README.md README
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue