core/upower/PKGBUILD

34 lines
838 B
Bash
Raw Normal View History

2014-05-26 18:38:02 +08:00
# maintainer: Neophytos Kolokotronis <tetris4ATgmailDOTcom>
2010-12-16 14:50:24 +08:00
pkgname=upower
2015-01-05 21:55:25 +08:00
pkgver=0.99.2
pkgrel=1
2010-12-16 14:50:24 +08:00
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
arch=('x86_64')
2010-12-16 14:50:24 +08:00
url="http://upower.freedesktop.org"
license=('GPL')
2014-08-04 17:38:15 +08:00
depends=('systemd' 'systemd' 'libusb' 'polkit' 'dbus-glib' 'libimobiledevice')
makedepends=('intltool' 'docbook-xsl' 'gobject-introspection')
backup=('etc/UPower/UPower.conf')
2014-12-12 19:08:13 +08:00
source=($url/releases/$pkgname-$pkgver.tar.xz)
2015-01-05 21:55:25 +08:00
md5sums=('93119fcb617a75ff9cd44999179ec217')
2014-08-04 17:38:15 +08:00
prepare() {
cd $pkgname-$pkgver
}
2010-12-16 14:50:24 +08:00
build() {
2014-08-04 17:38:15 +08:00
cd "$pkgname-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc \
2014-08-04 17:38:15 +08:00
--localstatedir=/var \
--libexecdir=/usr/lib/$pkgname \
--disable-static
2010-12-16 14:50:24 +08:00
make
2011-07-13 03:59:28 +08:00
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
2013-07-15 05:46:16 +08:00
}