mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:47:14 +08:00
32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=upower
|
|
pkgver=0.9.14
|
|
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=('udev>=172' 'libusb>=1.0.8' '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)
|
|
sha256sums=('81eb44c0453b264a737d32f763a31d5b1776f050a47d5be85fc5e9caf874a4c5')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
--libexecdir=/usr/lib/upower --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|