blob: 60159ef38c8490046fae2d231cf1d0d657be0f8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: tleydxdy <shironeko(at)waifu(dot)club>
pkgname=system76-power
pkgver=1.2.1
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'
)
provides=('power-profiles-daemon')
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')
source=(
"https://github.com/pop-os/${pkgname}/archive/${pkgver}.tar.gz"
'use-mkinitcpio.patch'
)
sha256sums=('90b796e72a442a7968fc80b269ed2a936c6541bcba939a72612898082fbd7ec3'
'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}"
CFLAGS+=" -ffat-lto-objects"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make sysconfdir="/usr/lib" DESTDIR="${pkgdir}" install
}
|