opt/upower/Pkgfile

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2014-11-27 10:58:39 +01:00
# Description: Abstraction for enumerating power devices, listening to device events and querying history and statistics.
# URL: https://upower.freedesktop.org/
2014-11-27 10:58:39 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2019-06-16 04:28:06 +02:00
# Depends on: dbus-glib intltool libgudev libusb
2020-04-17 05:25:48 +02:00
# Optional: gtk-doc
2014-11-27 10:58:39 +01:00
name=upower
2021-08-22 15:05:15 +02:00
version=0.99.13
2014-11-27 10:58:39 +01:00
release=1
2021-08-06 16:55:46 +02:00
source=(https://gitlab.freedesktop.org/upower/upower/-/archive/UPOWER_${version//[\.]/_}/upower-UPOWER_${version//[\.]/_}.tar.bz2
upower.1 UPower.7 upowerd.8 disable-gtk-docs.patch)
2014-11-27 10:58:39 +01:00
build() {
2021-08-06 16:55:46 +02:00
cd $name-UPOWER_${version//[\.]/_}
patch -Np1 -i $SRC/disable-gtk-docs.patch
2014-11-27 10:58:39 +01:00
2021-08-06 16:55:46 +02:00
NOCONFIGURE=1 ./autogen.sh
2014-11-27 10:58:39 +01:00
./configure \
--prefix=/usr \
2019-06-16 04:28:06 +02:00
--sysconfdir=/etc \
2014-11-27 10:58:39 +01:00
--localstatedir=/var \
--libexecdir=/usr/lib/$name \
2020-04-17 05:25:48 +02:00
--disable-nls
2014-11-27 10:58:39 +01:00
make
make DESTDIR=$PKG install
2020-04-17 05:25:48 +02:00
if [ ! -e 'usr/share/pkgconfig/gtk-doc.pc' ]; then
install -Dm644 $SRC/upower.1 $PKG/usr/share/man/man1/upower.1
install -Dm644 $SRC/UPower.7 $PKG/usr/share/man/man7/UPower.7
install -Dm644 $SRC/upowerd.8 $PKG/usr/share/man/man8/upowerd.8
fi
2014-11-27 10:58:39 +01:00
}