blob: 09cb019a5a9ea644aebb669df4084119b391c644 (
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
44
45
46
47
48
49
50
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=upower
pkgver=0.99.3
pkgrel=1
pkgdesc="Power Management Services"
url="http://upower.freedesktop.org"
arch="all"
license="GPL2+"
depends=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="linux-headers gtk+-dev eudev-dev libusb-dev polkit-dev dbus-glib-dev libxslt
docbook-xsl"
source="http://upower.freedesktop.org/releases/upower-$pkgver.tar.xz
lib-Fix-memory-leak-in-up_client_get_devices.patch
linux-Fix-possible-double-free.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
DATADIRNAME=share ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/upower \
--disable-static \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="a9c95d0545bc23d784642c11e157cfbf upower-0.99.3.tar.xz
e2f1d7810337b9c7dd559bda4b88cfea lib-Fix-memory-leak-in-up_client_get_devices.patch
48ab7a1f497b8628f0a836aa4e3bd1f1 linux-Fix-possible-double-free.patch"
sha256sums="697199bcc113bb069e6fb6bf4135536a702ba9847e46c5fc6df87d19624ddd38 upower-0.99.3.tar.xz
8c62939c1850f4c3b7ee32b5b79496155c03cd1371e7cad26ecfc1e0643f9851 lib-Fix-memory-leak-in-up_client_get_devices.patch
069e4407b775a28bbf987d145e0d0659dcae4b85e3b9a45a0a3aef0cee23f426 linux-Fix-possible-double-free.patch"
sha512sums="665b5b03605910b3a2d3f32e4846c2b2ab4c91ba91c55dde8c5b8ab3856f3d6fea5efac20fdb608050b57979ed344ef630c76acc0b3f858e8c5168f6adeb2d64 upower-0.99.3.tar.xz
d18e4c6119e32297f612fa110e01de342381f38c8be42d4fd5322eb17a2cb172c1cb8bf09e0a25e0ef6b76edb82b6748c9c8fd02f44341f51ecd09141ea432fd lib-Fix-memory-leak-in-up_client_get_devices.patch
13656064551a9b9e40fe3560098319182e980d2ab48134959f9f642a6c42cb0283b3bd00052ef26834ffea5c3a2108b66fd127e165b2167a43064ccd4ba526b0 linux-Fix-possible-double-free.patch"
|