Files
BMLFS/build-scripts/upower.build
2022-02-28 13:44:36 -06:00

55 lines
2.0 KiB
Bash

#! /bin/bash
# UPower
# Source: https://gitlab.freedesktop.org/upower/upower/uploads/177df5b9f9b76f25a2ad9da41aa0c1fa/upower-0.99.13.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: libgudev libusb polkit
# Recommended: gobject-introspection
# Optional: GTK-Doc PyGObject dbusmock umockdev(for part of the test suite) libimobiledevice
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-deprecated \
--disable-static $BT
read -p "Compile?" && make -j2 &&
sudo -S make DESTDIR=$BUILD install &&
sudo -S mkdir -pv /BMAN/install /BMAN/usr/share && \
sudo -S mv $BUILD/usr/share/man /BMAN/usr/share/ && \
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
upower: UPower
upower:
upower: This provides an interface for enumerating power devices, listening
upower: to device events and querying history and statistics
upoeer:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/upower-0.99.13-$(uname -m)-mlfs.txz && \
cd /BMAN && \
cat > /tmp/slack-desc << "EOF"
upower-doc: Manuals for UPower
upower-doc:
upower-doc: An interface for enumerating power devices, listening to device events
upower-doc: and querying history and statistics
upower-doc:
EOF
sudo -S mv -v /tmp/slack-desc install/ && \
sudo -S makepkg -l y -c n $PKGS/upower-doc-0.99.13-noarch-mlfs.txz && \
sudo -S rm -rf ${BUILD}/* /BMAN/*