void-packages/srcpkgs/2bwm/template
2019-09-30 19:54:43 +02:00

28 lines
837 B
Bash

# Template file for '2bwm'
pkgname=2bwm
version=0.3
revision=1
build_style=gnu-makefile
makedepends="libxcb-devel xcb-util-keysyms-devel xcb-util-wm-devel xcb-util-xrm-devel"
short_desc="Fast floating window manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://github.com/venam/2bwm"
distfiles="https://github.com/venam/${pkgname}/archive/v${version}.tar.gz"
checksum=a4889ea4b01b1a3d4a508daa034b9d86676913cbbca1f977858df692a6e2af95
pre_build() {
sed -i 's|-Os ||g' Makefile
sed -i 's|^CFLAGS+=|override CFLAGS +=|g' Makefile
sed -i 's|^LDFLAGS+=|override LDFLAGS +=|g' Makefile
sed -i '/#include <stdlib.h>/i#define _GNU_SOURCE' 2bwm.c
sed -n 1,17p 2bwm.c >LICENSE
}
do_install() {
vbin 2bwm
vbin hidden
vman 2bwm.man 2bwm.1
vman hidden.man hidden.1
vdoc README.md README
vlicense LICENSE
}