2012-07-02 13:38:40 +02:00

28 lines
766 B
Plaintext

# Description: Battery plugin for the Xfce 4 panel
# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-battery-plugin
# Maintainer: Jose V Beneyto, sepen at crux dot nu
# Packager: Alwin Egger, alwin dot egger at tegonal dot com
# Depends on: xfce4-panel
# Group: xfce4
name=xfce4-battery-plugin
version=1.0.5
release=1
source=(http://archive.xfce.org/src/panel-plugins/$name/${version%.*}/$name-$version.tar.bz2)
build () {
cd $name-$version
./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 {} \;
}