diff options
author | Ranieri Althoff | 2019-10-28 14:49:40 -0300 |
---|---|---|
committer | Ranieri Althoff | 2019-10-28 14:51:43 -0300 |
commit | f82dd0280975a2134fee73629da9c69a967f3373 (patch) | |
tree | 6b52f6a57504e58c5fec9ae9f75267fa808556a8 | |
download | aur-f82dd0280975a2134fee73629da9c69a967f3373.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 20 | ||||
-rw-r--r-- | PKGBUILD | 25 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b088cf84ac4e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = amdgpu-clocks-git + pkgdesc = Simple script to control power states of amdgpu driven GPUs + pkgver = r14.4cfd488 + pkgrel = 1 + url = https://github.com/sibradzic/amdgpu-clocks + arch = any + license = GPL2 + depends = bash + provides = amdgpu-clocks + conflicts = amdgpu-clocks + source = amdgpu-clocks-git::git+https://github.com/sibradzic/amdgpu-clocks.git + sha512sums = SKIP + +pkgname = amdgpu-clocks-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ccdadf693590 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ + +# Created by https://www.gitignore.io/api/archlinuxpackages +# Edit at https://www.gitignore.io/?templates=archlinuxpackages + +### ArchLinuxPackages ### +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ + +# End of https://www.gitignore.io/api/archlinuxpackages diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..05ef691fdccf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Ranieri Althoff <ranisalt+aur at gmail dot com> + +pkgname=amdgpu-clocks-git +pkgver=r14.4cfd488 +pkgrel=1 +pkgdesc='Simple script to control power states of amdgpu driven GPUs' +url='https://github.com/sibradzic/amdgpu-clocks' +license=('GPL2') +arch=('any') +conflicts=(${pkgname%-git}) +provides=(${pkgname%-git}) +depends=('bash') +source=("${pkgname}::git+${url}.git") +sha512sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + install -Dm755 amdgpu-clocks "$pkgdir/usr/bin/amdgpu-clocks" + install -Dm644 amdgpu-clocks.service "$pkgdir/usr/lib/systemd/system/amdgpu-clocks.service" +} |