mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 15:24:36 +08:00
34 lines
838 B
Bash
34 lines
838 B
Bash
# maintainer: Neophytos Kolokotronis <tetris4ATgmailDOTcom>
|
|
|
|
pkgname=upower
|
|
pkgver=0.99.2
|
|
pkgrel=1
|
|
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
|
|
arch=('x86_64')
|
|
url="http://upower.freedesktop.org"
|
|
license=('GPL')
|
|
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)
|
|
md5sums=('93119fcb617a75ff9cd44999179ec217')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--libexecdir=/usr/lib/$pkgname \
|
|
--disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|