blob: 983826f42481603336bcf5ff25d86ba6c9cf4be3 (
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
53
54
55
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Corey Hinshaw <corey(at)electrickite(dot)org>
pkgname=firmware-manager
_app_id=com.system76.FirmwareManager
pkgver=0.1.5+12+g3c542bd
pkgrel=2
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')
install="$pkgname.install"
_commit=3c542bd09ecbd872e194595570074fdd15e6e975 # branch/master
source=("git+https://github.com/pop-os/firmware-manager.git#commit=${_commit}"
"${_app_id}.policy"
"$pkgname.sh")
sha256sums=('16a5a62995648d16ab788b1b8fe78663534f167c8aac2bc56f2e08522f01a432'
'310e872ec56f13764615795dbcc30e3ab8b0e4329c0d1fe34bd5aa73bc602535'
'fb8395e19bfd54f756dad1d073135c5b41caa2ad27ee0621350fba50b2e7363b')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname"
CFLAGS+=" -ffat-lto-objects"
export RUSTUP_TOOLCHAIN=stable
make prefix=/usr
}
package() {
cd "$pkgname"
make prefix=/usr DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/${_app_id}.policy" -t \
"$pkgdir/usr/share/polkit-1/actions/"
install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
desktop-file-edit --set-key=Exec --set-value="$pkgname" \
"$pkgdir/usr/share/applications/${_app_id}.desktop"
}
|