void-packages/srcpkgs/xfce4-netload-plugin/template

22 lines
762 B
Bash

# Template file for 'xfce4-netload-plugin'
pkgname=xfce4-netload-plugin
version=1.2.4
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
makedepends="xfce4-panel-devel"
short_desc="A netload plugin for the Xfce panel"
maintainer="Alexander Mamay <alexander@mamay.su>"
license="GPL-2"
homepage="http://goodies.xfce.org/projects/panel-plugins/xfce4-netload-plugin"
distfiles="http://archive.xfce.org/src/panel-plugins/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=fface918822c012d806717116566e54947ad7613b9290b45a18e2d5ffb8730d3
pre_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # There is no <sys/sysctl.h> in musl libc
sed -e "s;<sys/sysctl\.h>;<linux/sysctl.h>;" \
-i ${wrksrc}/panel-plugin/os.h
esac
}