summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fb176e8f2f87d096db4a8eaa0106fea24209c1d (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
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=gnome-shell-extension-system76-power-git
pkgver=2.0.6.r2.g255ec7e
pkgrel=1
pkgdesc="Gnome shell extension for System76 power management"
arch=('any')
url="https://github.com/pop-os/gnome-shell-extension-system76-power"
license=('MIT')
depends=('gnome-shell' 'system76-power')
makedepends=('git' 'make' 'typescript')
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')

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

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

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

	make DESTDIR="${pkgdir}"
}


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

	make DESTDIR="${pkgdir}" install
}