void-packages/srcpkgs/mcwm-git/template

35 lines
962 B
Text

# Template file for 'mcwm-git'
pkgname=mcwm-git
version=20140317
revision=1
build_style=gnu-makefile
hostmakedepends="git"
makedepends="libxcb-devel xcb-proto xcb-util-devel xcb-util-keysyms-devel xcb-util-wm-devel"
provides="mcwm-${version}_${revision}"
replaces="mcwm>=0"
short_desc="A minimalist stacking X window manager based on XCB"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="ISC"
homepage="http://hack.org/mc/projects/mcwm/"
do_fetch() {
local url="git://hack.org/mcwm"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
do_build() {
cp ${FILESDIR}/config.h config.h
sed -i 's/man\/man1/share\/man\/man1/g' Makefile
make CC=$CC ${makejobs}
}
do_install() {
vmkdir usr/bin
vmkdir usr/share/man/man1
make PREFIX=${DESTDIR}/usr install
vinstall scripts/9icon 755 usr/bin
vinstall scripts/mcicon 755 usr/bin
vinstall scripts/mcmenu 755 usr/bin
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}