void-packages/srcpkgs/swarp/template

24 lines
691 B
Bash

# Template file for 'swarp'
pkgname=swarp
version=0.1
revision=1
short_desc="Simple pointer warping tool for X"
maintainer="Inokentiy Babushkin <inokentiy.babushkin@googlemail.com>"
license="MIT"
makedepends="libX11-devel"
homepage="http://tools.suckless.org/x/swarp"
distfiles="http://dl.suckless.org/tools/${pkgname}-${version}.tar.gz"
checksum=ef5730fe8ee00879cbec1e91e22a7f0f7817a63375d790d775f5b7427886d45f
do_build() {
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk
make CC=$CC INCS="-I." LIBS="-lX11" ${makejobs}
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vlicense LICENSE
}