# Maintainer: tleydxdy pkgname=system76-power pkgver=1.1.26 pkgrel=1 pkgdesc="System76 Power Management" arch=('any') url="https://github.com/pop-os/system76-power" license=('GPL') install="${pkgname}.install" depends=( 'dbus' 'libusb' 'polkit' ) optdepends=( 'system76-acpi-dkms: some systems might need this driver' 'system76-dkms: some systems might need this driver' 'system76-io-dkms: some systems might need this driver' ) makedepends=('rust') options=('!lto') # see https://aur.archlinux.org/packages/system76-power#comment-846879 source=( "https://github.com/pop-os/${pkgname}/archive/${pkgver}.tar.gz" 'use-mkinitcpio.patch' ) sha256sums=('d78dd6b69d2ee0759652eae9b3bc29191d337f56a89c08d82d2d0ed30435b5c2' 'bae03d96faea0f7ea80cb1cc5d4f2f97804509db378aaacb3e1d08cd38e05765') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" # use mkinitcpio -P inplace of update-initramfs -u patch --no-backup-if-mismatch -Np1 -i "${srcdir}"/use-mkinitcpio.patch } build() { cd "${srcdir}/${pkgname}-${pkgver}" make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make sysconfdir="/usr/lib" DESTDIR="${pkgdir}" install }