From cd326e60e1e54ebe83bd700850b313c69f419eef Mon Sep 17 00:00:00 2001 From: root Date: Fri, 16 Mar 2012 00:01:21 +0000 Subject: Fri Mar 16 00:01:21 UTC 2012 --- community/osdbattery/PKGBUILD | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'community/osdbattery') diff --git a/community/osdbattery/PKGBUILD b/community/osdbattery/PKGBUILD index 62eced75b..8e45267ef 100644 --- a/community/osdbattery/PKGBUILD +++ b/community/osdbattery/PKGBUILD @@ -1,22 +1,31 @@ -# $Id: PKGBUILD 7260 2010-01-03 16:12:31Z ibiru $ +# $Id: PKGBUILD 67719 2012-03-14 08:59:42Z giovanni $ +# Maintainer: Jaroslav Lichtblau # Contributor: dibblethewrecker + pkgname=osdbattery pkgver=1.4 -pkgrel=3 +pkgrel=4 pkgdesc="Displays battery information in the OSD style" arch=('i686' 'x86_64') url="http://osdbattery.sourceforge.net" -license=("GPL2") +license=('GPL2') depends=('xosd') install=osdbattery.install -source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname\_$pkgver.tar.gz showbatt) -md5sums=('43f9cc0428b6cb25baf1e6e2286e88b1' 'a786cd645135a369c8ed55b837174c92') +source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}_${pkgver}.tar.gz" + 'showbatt') +md5sums=('43f9cc0428b6cb25baf1e6e2286e88b1' + 'a786cd645135a369c8ed55b837174c92') build() { - cd $startdir/src/$pkgname\_$pkgver - make || return 1 - install -D -m755 $startdir/src/$pkgname\_$pkgver/$pkgname $startdir/pkg/usr/bin/$pkgname - install -D -m755 $startdir/src/showbatt $startdir/pkg/usr/bin/showbatt - install -D -m644 $startdir/src/$pkgname\_$pkgver/$pkgname.cfg $startdir/pkg/etc/$pkgname/$pkgname.cfg + cd "${srcdir}/${pkgname}_${pkgver}" + + 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" } -# vim:syntax=sh -- cgit v1.2.3-54-g00ecf