void-packages/srcpkgs/surf/template
Kevin Crumb 4db7eb829b surf: add "xprop" runtime dependency
Without `xprop` visiting sites via Ctrl-g fails.
2020-11-23 02:13:15 -03:00

25 lines
683 B
Bash

# Template file for 'surf'
pkgname=surf
version=2.0
revision=2
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="webkit2gtk-devel"
depends="xprop"
short_desc="Simple web browser based on WebKit/GTK+"
maintainer="Orphaned <orphan@voidlinux.org>"
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
}