summaryrefslogtreecommitdiff
path: root/extra/xfce4-battery-plugin/PKGBUILD
blob: 54eaad736bc3c5b3c9d78da4d81d60a427d25279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id: PKGBUILD 151509 2012-02-26 21:57:00Z foutrelis $
# Maintainer: aurelien <aurelien@archlinux.org>
# Contributor: Aurelien Foret <orelien@chez.com>

pkgname=xfce4-battery-plugin
pkgver=1.0.0
pkgrel=3
pkgdesc="A battery monitor plugin for the Xfce panel"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
url="http://xfce-goodies.berlios.de/"
groups=('xfce4-goodies')
depends=('xfce4-panel' 'libxfcegui4' 'hicolor-icon-theme')
makedepends=('intltool')
options=('!libtool')
install=$pkgname.install
source=(http://archive.xfce.org/src/panel-plugins/$pkgname/1.0/$pkgname-$pkgver.tar.bz2
        show-time-when-on-battery.patch)
sha256sums=('c28bb580e6b932c017b5bc6b2e75de8c3557e08d9606c7a70134aa035f8a121f'
            '7cabd72a462406295e438a2aae89c09af9f759b5c257f7ecd19ae02c81250575')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  # Fix FS#27438: Remaining time not shown on some systems
  patch -Np1 -i "$srcdir/show-time-when-on-battery.patch"

  ./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: