diff options
author | StaticRocket | 2020-09-27 13:13:32 -0400 |
---|---|---|
committer | StaticRocket | 2020-09-27 13:27:28 -0400 |
commit | f0418a5000a87a02f66cd05dd9bcb03defa563e1 (patch) | |
tree | 55ec095e44c1805fe8bc10c3cc8f9106088a9001 /PKGBUILD | |
download | aur-f0418a5000a87a02f66cd05dd9bcb03defa563e1.tar.gz |
init
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..cb7eea7280d5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Static_Rocket + +pkgname=asus-nb-ctrl-git +pkgver=2.0.4.r4.gf61f62c +pkgrel=1 +pkgdesc="Asus laptop control utilities" +arch=('x86_64') +url="https://github.com/wroberts/rogauracore" +license=('Mozilla Public License Version 2.0') +depends=('glibc' 'libusb' 'udev' 'systemd' 'hid-asus-rog-dkms-git') +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 +} + |