diff options
author | Guillaume Meunier | 2020-06-04 13:46:22 +0200 |
---|---|---|
committer | Guillaume Meunier | 2020-06-04 13:46:22 +0200 |
commit | 76c9fb48c75922c4e8094e41f88f86738d6f6eb7 (patch) | |
tree | abbd41f4ca8857bd600d2626de4fdf4508b89ef0 | |
download | aur-76c9fb48c75922c4e8094e41f88f86738d6f6eb7.tar.gz |
Version 0.10.0
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rwxr-xr-x | update.sh | 19 |
4 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2183245cf182 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = rog-core + pkgdesc = A utility for Linux to control many aspects (eventually) of the ASUS ROG laptops like the Zephyrus GX502GW + pkgver = 0.10.0 + pkgrel = 1 + url = https://github.com/flukejones/rog-core + arch = x86_64 + license = MPL2 + makedepends = rust + source = https://github.com/flukejones/rog-core/archive/v0.10.0.tar.gz + sha256sums = 743b096cd98f3cbf176be77a4af056559b85c7e524b62c89ce80843a21dfc91d + +pkgname = rog-core + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ad5a4af52e8a --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*~ +src/ +pkg/ + +*.tar.gz +*.pkg.tar* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dc5470774619 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Guillaume Meunier <guillaume.meunier@centraliens.net> +pkgname=rog-core +pkgbase=rog-core +pkgver=0.10.0 +pkgrel=1 +epoch= +pkgdesc="A utility for Linux to control many aspects (eventually) of the ASUS ROG laptops like the Zephyrus GX502GW" +arch=('x86_64') +url="https://github.com/flukejones/rog-core" +license=('MPL2') +groups=() +makedepends=(rust) +checkdepends=() +optdepends=() +conflicts=() +backup=() +options=() +install= +changelog= + +source=("https://github.com/flukejones/rog-core/archive/v$pkgver.tar.gz") +sha256sums=('743b096cd98f3cbf176be77a4af056559b85c7e524b62c89ce80843a21dfc91d') +noextract=() +validpgpkeys=() + +build() { + echo $srcdir + cd "$srcdir"/$pkgname-$pkgver + make +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + DESTDIR="$pkgdir"/ make install +} + diff --git a/update.sh b/update.sh new file mode 100755 index 000000000000..057706216921 --- /dev/null +++ b/update.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +source ./PKGBUILD + +TAG_NAME=$(curl https://api.github.com/repos/flukejones/rog-core/releases/latest 2> /dev/null | jq --raw-output '.tag_name') +VERSION=$(echo $TAG_NAME | sed "s/^v\(.*\)$/\1/") + +if [ "$pkgver" != "$VERSION" ] +then + echo $pkgver "->" $VERSION + sed -i "s/^pkgver=.*$/pkgver=$VERSION/" PKGBUILD + sed -i "s/^sha256sums=.*/"$(makepkg --geninteg 2> /dev/null)"/" PKGBUILD + makepkg --printsrcinfo > .SRCINFO + + git add PKGBUILD .SRCINFO + git commit -m "Version "$VERSION +fi |