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

22 lines
775 B
Bash

# Template file for 'xfce4-netload-plugin'
pkgname=xfce4-netload-plugin
version=1.3.1
revision=2
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.0-or-later"
homepage="https://goodies.xfce.org/projects/panel-plugins/xfce4-netload-plugin"
distfiles="https://archive.xfce.org/src/panel-plugins/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=99762781099d1e0ab9aa6a7b30c2bd94d8f658dbe61c760410d5d42d0766391c
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
}