void-packages/srcpkgs/surf/template

25 lines
666 B
Bash

# Template file for 'surf'
pkgname=surf
version=2.0
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="webkit2gtk-devel"
short_desc="Simple web browser based on WebKit/GTK+"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://surf.suckless.org"
distfiles="http://dl.suckless.org/surf/$pkgname-$version.tar.gz"
checksum=faee4c7a62c38fc9791eff1ad06787c3c9b2b79f338806827f5152a7bc54951d
do_build() {
sed -i 's,/usr/include,,g;s,/usr/lib,,g' config.mk
sed -i "/CFLAGS/s|\${CPPFLAGS}|& $CFLAGS|g" config.mk
sed -i "/LDFLAGS/s|\-s|$LDFLAGS|g" config.mk
make CC=$CC ${makejobs}
}
post_install() {
vlicense LICENSE
}