summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c94c039d36dc78bf221e773fcedf800ec1461404 (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
# Maintainer: Tony Lambiris <tony@criticalstack.com>

pkgname=system76-firmware-daemon-git
pkgver=1.0.5.r14.g789457f
pkgrel=1
pkgdesc="System76 Firmware Daemon provides a daemon for installing firmware updates."
arch=('any')
url="https://github.com/pop-os/system76-firmware"
license=('GPL')
install=system76-firmware-daemon.install
depends=('dbus' 'systemd' 'openssl-1.0')
makedepends=('rust')
conflicts=('system76-driver<=17.10.32' 'system76-firmware-daemon')
provides=('system76-firmware-daemon')
source=("${pkgname}::git://github.com/pop-os/system76-firmware.git"
		"system76-firmware-daemon.install")
sha256sums=('SKIP'
            '1d2604a2d4273adf05752529d6af917abba7e64d9e04e3519d9c438632cfcf5b')

pkgver() {
	cd "${srcdir}/${pkgname}"

	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/${pkgname}"

	make
}

package() {
	cd "${srcdir}/${pkgname}"

	make DESTDIR="${pkgdir}" install
}