# Description: Display netload data in the panel # Xfce git group: panel-plugins # URL: https://docs.xfce.org/panel-plugins/xfce4-netload-plugin # doc # URL: https://gitlab.xfce.org/panel-plugins/xfce4-netload-plugin # git # Maintainer: David L. Craig, dlc dot usa at gmail dot com # Depends on: xfce4-panel xfcerel=4.16 name=xfce4-netload-plugin version=1.4.0 release=1 source=(https://archive.xfce.org/src/panel-plugins/$name/${version%.*}/$name-$version.tar.bz2 xfce_$xfcerel.$name ) build () { # The port's pre-install script ensured the build and/or deploy system is in the # right state to build and/or deploy this port. # Establish the $xfcerel $name file for this port: install -d -m0755 -groot -oroot $PKG/var/lib/pkg/xfce/$xfcerel install -T -m0644 -groot -oroot $SRC/xfce_$xfcerel.$name \ $PKG/var/lib/pkg/xfce/$xfcerel/$name # Build the canonical package: cd $name-$version sed -i panel-plugin/Makefile.* -e 's|panel-plugins|panel/plugins|g' ./configure --prefix=/usr \ --libexecdir=/usr/lib \ --disable-static \ --disable-debug make make DESTDIR=$PKG install rm -rf $PKG/usr/share/locale find $PKG/usr/share/xfce4/panel/plugins -type f -name '*.desktop' \ -exec sed -r '/\[.+\]=/d' -i {} \; }