summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 008c74c938ca244002db7ff6f61492cb37efa211 (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: Static_Rocket

pkgname=asus-nb-ctrl-git
pkgver=2.0.4.r4.gf61f62c
pkgrel=2
pkgdesc="Asus laptop control utilities"
arch=('x86_64')
url="https://gitlab.com/asus-linux/asus-nb-ctrl"
license=('Mozilla Public License Version 2.0')
depends=('glibc' 'libusb' 'udev' 'systemd')
optdepends=('hid-asus-rog-dkms-git: fn+key combination support')
makedepends=('git' 'rust' 'make' 'clang')
source=('git+https://gitlab.com/asus-linux/asus-nb-ctrl.git' 'userpatch.patch')
md5sums=('SKIP' '0add5394ceece18c95d338ec621db3c3')
_gitdir=${pkgname%"-git"}

pkgver() {
	cd "$_gitdir"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "$srcdir/$_gitdir"
	patch --strip=1 --input="$srcdir/userpatch.patch"
}

build() {
	cd "$_gitdir"
	make
}

package() {
	cd "$_gitdir"
	make DESTDIR="$pkgdir" install
}