blob: ca687f71524a99b6b8da636a82936ecb33c534a0 (
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
49
50
51
52
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=firmware-manager-git
_app_id=com.system76.FirmwareManager
pkgver=0.1.5.r12.g3c542bd
pkgrel=1
pkgdesc="Generic framework and GTK UI for firmware updates from system76-firmware and fwupd"
arch=('x86_64' 'aarch64')
url="https://github.com/pop-os/firmware-manager"
license=('GPL-3.0-or-later')
depends=('dbus' 'gtk3' 'libgudev' 'openssl' 'polkit')
makedepends=('cargo' 'git')
optdepends=('fwupd: Generic firmware updates'
'system76-firmware-daemon: System76 firmware updates')
conflicts=('libfirmware-manager')
source=('git+https://github.com/pop-os/firmware-manager.git'
"${_app_id}.policy"
"${pkgname%-git}.sh")
sha256sums=('SKIP'
'310e872ec56f13764615795dbcc30e3ab8b0e4329c0d1fe34bd5aa73bc602535'
'fb8395e19bfd54f756dad1d073135c5b41caa2ad27ee0621350fba50b2e7363b')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname%-git}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${pkgname%-git}"
CFLAGS+=" -ffat-lto-objects"
export RUSTUP_TOOLCHAIN=stable
make prefix=/usr
}
package() {
cd "${pkgname%-git}"
make prefix=/usr DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/${_app_id}.policy" -t \
"$pkgdir/usr/share/polkit-1/actions/"
install -Dm755 "$srcdir/${pkgname%-git}.sh" "$pkgdir/usr/bin/${pkgname%-git}"
desktop-file-edit --set-key=Exec --set-value="${pkgname%-git}" \
"$pkgdir/usr/share/applications/${_app_id}.desktop"
}
|