diff --git a/extra/xfce4-battery-plugin/PKGBUILD b/extra/xfce4-battery-plugin/PKGBUILD new file mode 100644 index 000000000..8944bf463 --- /dev/null +++ b/extra/xfce4-battery-plugin/PKGBUILD @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Evangelos Foutras +# Contributor: aurelien +# Contributor: Aurelien Foret + +# ALARM: Kevin Mihelich +# - patch for AArch64 + +pkgname=xfce4-battery-plugin +pkgver=1.0.5 +pkgrel=5 +pkgdesc="A battery monitor plugin for the Xfce panel" +arch=('i686' 'x86_64') +license=('GPL2') +url="http://goodies.xfce.org/projects/panel-plugins/xfce4-battery-plugin" +groups=('xfce4-goodies') +depends=('xfce4-panel') +makedepends=('intltool') +source=(http://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2 + fix-unistd-include.patch) +sha256sums=('f659b1af40ab72c93448affaa693ab551827a5600ce9b97a799b7c2419bdeb11' + '14428980d8ad46a28d90f587c4d8c6fe8fa8c2133eb962238e83186a88aa40c9') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 -i ../fix-unistd-include.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/xfce4-battery-plugin/fix-unistd-include.patch b/extra/xfce4-battery-plugin/fix-unistd-include.patch new file mode 100644 index 000000000..d2ac14113 --- /dev/null +++ b/extra/xfce4-battery-plugin/fix-unistd-include.patch @@ -0,0 +1,20 @@ +Index: xfce4-battery-plugin-1.0.5/panel-plugin/libacpi.c +=================================================================== +--- xfce4-battery-plugin-1.0.5.orig/panel-plugin/libacpi.c ++++ xfce4-battery-plugin-1.0.5/panel-plugin/libacpi.c +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + #ifdef __FreeBSD__ + #include +@@ -52,7 +53,6 @@ static int acpifd; + #include + #include + #include +-#include + + #endif +