updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / battery_time_remaining / PKGBUILD
blob55a22b9fef4de55986148086be11762f68ead45d
1 # Contributor: Martin Stolpe <martinstolpe {at} gmail ... com>
2 pkgname=battery_time_remaining
3 pkgver=0.4
4 pkgrel=1
5 pkgdesc="Battery Remaining Time Display Widget for KDE 4"
6 arch=('i686' 'x86_64')
7 url="http://kde-look.org/content/show.php/Battery+Time+Remaining?content=123767"
8 license=('GPL')
9 depends=('kdebase-workspace')
10 makedepends=('cmake' 'gcc')
11 source=(http://kde-look.org/CONTENT/content-files/123767-plasma-batterytime-monochrome-${pkgver}.tar.gz)
12 install=(battery_time_remaining.install)
14 build() {
15   cd "$srcdir"
17   [[ -d ${srcdir}/build ]] && rm -rf ${srcdir}/build
18   mkdir ${srcdir}/build
19   cd ${srcdir}/build
21   cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=Release ${srcdir}/plasma-batterytime-monochrome-${pkgver}
22   make || return 1
23   make DESTDIR="$pkgdir/" install
25 md5sums=('353a113b2aa504ba6d716f606a97ee22')