mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:47:16 +08:00
37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=upower
|
|
pkgver=0.9.18
|
|
pkgrel=1
|
|
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
|
|
arch=('i686' 'x86_64')
|
|
url="http://upower.freedesktop.org"
|
|
license=('GPL')
|
|
depends=('systemd>=188' 'libusbx' 'polkit>=0.98' 'pm-utils>=1.4.1' 'dbus-glib>=0.92')
|
|
makedepends=('pkg-config' 'intltool' 'docbook-xsl')
|
|
replaces=('devicekit-power')
|
|
options=('!libtool')
|
|
source=($url/releases/${pkgname}-${pkgver}.tar.xz)
|
|
md5sums=('bfaaa1e7f8479fca5594406b3c36dff9')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# put udev files in /usr/lib
|
|
sed -i "/slashlibdir=/s#/lib#/usr/lib#" configure
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--libexecdir=/usr/lib/upower \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
--disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
} |