34 lines
979 B
Text
34 lines
979 B
Text
# Template file for '2bwm-git'
|
|
pkgname=2bwm-git
|
|
version=20140531
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
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() {
|
|
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() {
|
|
vinstall 2bwm 755 usr/bin
|
|
vinstall hidden 755 usr/bin
|
|
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
|
|
}
|