summaryrefslogtreecommitdiff
path: root/community/osdbattery/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/osdbattery/PKGBUILD')
-rw-r--r--community/osdbattery/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/osdbattery/PKGBUILD b/community/osdbattery/PKGBUILD
new file mode 100644
index 000000000..1d2da5715
--- /dev/null
+++ b/community/osdbattery/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 76967 2012-10-02 18:09:45Z jlichtblau $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: dibblethewrecker <dibblethewrecker@jiwe.org>
+
+pkgname=osdbattery
+pkgver=1.4
+pkgrel=5
+pkgdesc="Displays battery information in the OSD style"
+arch=('i686' 'x86_64')
+url="http://osdbattery.sourceforge.net/"
+license=('GPL2')
+depends=('xosd')
+makedepends=('patch')
+install=$pkgname.install
+source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}_${pkgver}.tar.gz
+ sysfs.patch::"http://sourceforge.net/tracker/download.php?group_id=120528&atid=687314&file_id=429967&aid=3450277"
+ showbatt)
+sha256sums=('b1f775c746cd78b6aa7fc9ee75ecf2806ef3da93a42dd806c0414dcae55aed9f'
+ 'd7a00e918929d36aaf3eb398649ea070ed6c4840e3da2407226fc5d9ae15d776'
+ '69969053235642315b49fe6ea5df7f8c391befbf492fd4ff71afbf4d438333b2')
+
+build() {
+ cd ${srcdir}/${pkgname}_${pkgver}
+
+ patch -i ${srcdir}/sysfs.patch
+
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}_${pkgver}
+
+ install -D -m755 $pkgname ${pkgdir}/usr/bin/${pkgname}
+ install -D -m755 ${srcdir}/showbatt ${pkgdir}/usr/bin/showbatt
+ install -D -m644 $pkgname.cfg ${pkgdir}/etc/${pkgname}/${pkgname}.cfg
+}