summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorkrims0n2016-04-07 12:57:48 +0200
committerkrims0n2016-04-07 12:57:48 +0200
commitca761cb83c5b0c221c243d6e9567a9fdb06f9976 (patch)
tree5434e8d90a9fb694517ff456d8f133246c37e8d2 /PKGBUILD
downloadaur-xfce4-power-manager-xbacklight.tar.gz
Initial commit. I made this patched package because the default brightness helper does not work properly on my Dell Precision 7510
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a8e97d5b2e5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: krimson32 <krims0n32 omnomnom gmail.com>
+# Contributor: krimson32 <krims0n32 omnomnom gmail.com>
+
+_pkgname=xfce4-power-manager
+pkgname=xfce4-power-manager-xbacklight
+pkgver=1.4.4
+pkgrel=1
+pkgdesc="Power manager for Xfce desktop using xbacklight for setting brightness"
+arch=('i686' 'x86_64')
+url="http://www.xfce.org/"
+license=('GPL2')
+groups=('xfce4')
+depends=('libxfce4ui' 'upower' 'libnotify' 'hicolor-icon-theme' 'xorg-xbacklight')
+optdepends=('xfce4-panel: for the Xfce panel plugin'
+ 'lxpanel: for the LXDE panel plugin')
+makedepends=('intltool' 'xfce4-panel' 'lxpanel')
+conflicts=('xfce4-power-manager')
+install=$_pkgname.install
+source=(http://archive.xfce.org/src/apps/$_pkgname/${pkgver%.*}/$_pkgname-$pkgver.tar.bz2 xbacklight.patch)
+sha256sums=('c50ec8aa7e7848c57c0f856dceb8132eb5f37585f0ac1627459ab8c882c73b07'
+ '9e03283b77d2afff7570e2187b064a1954a5a40a1fdb79a37436469b7c050afe')
+
+prepare() {
+ cd $_pkgname-$pkgver
+ patch -Np1 -i $srcdir/xbacklight.patch
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-network-manager \
+ --enable-polkit \
+ --disable-debug
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et: