core/upower/PKGBUILD

40 lines
1.0 KiB
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
2014-08-04 17:38:15 +08:00
pkgver=0.99.0
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')
source=($url/releases/$pkgname-$pkgver.tar.xz
create-dir-runtime.patch
fix-segfault.patch)
md5sums=('14f43bc13353e23e7280863f33ac50d2'
'74901767f9c94451083b3d92396454ab'
'fa2f37eec44703e4c10edb5d9abb0f6b')
prepare() {
cd $pkgname-$pkgver
patch -Np1 -i ../create-dir-runtime.patch
patch -Np1 -i ../fix-segfault.patch
}
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
}