summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAleksandr Mezin2019-05-01 05:57:42 +0600
committerAleksandr Mezin2019-05-01 05:57:42 +0600
commit2cb58f9dac848390141f64d0c2d07815f3c69ff9 (patch)
tree4712a877be9f8b2cccbaa8f1653be869bf763f7f /PKGBUILD
downloadaur-2cb58f9dac848390141f64d0c2d07815f3c69ff9.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..11b27a7004b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Aleksandr Mezin <mezin.alexander@gmail.com>
+pkgname=amdgpu-tweakd-git
+pkgver=0.1.dev39+g6dd3cb0
+pkgrel=1
+pkgdesc='amdgpu fan speed control and power limit tweak'
+provides=('amdgpu-tweakd')
+conflicts=('amdgpu-tweakd')
+arch=('any')
+depends=('python-jeepney' 'python-pyudev')
+makedepends=('git' 'python-setuptools-scm')
+source=("${pkgname}::git+https://github.com/amezin/amdgpu-tweakd.git")
+md5sums=('SKIP')
+backup=('etc/amdgpu-tweakd')
+license=('GPL3')
+
+pkgver() {
+ cd $pkgname
+ python setup.py --version
+}
+
+build() {
+ cd $pkgname
+ python setup.py build
+}
+
+package() {
+ cd $pkgname
+ python setup.py install --prefix=/usr --root="${pkgdir}/" --optimize=1 --skip-build
+
+ install -dm755 "${pkgdir}/usr/share/doc/amdgpu-tweakd"
+ install -Dm644 config.example "${pkgdir}/usr/share/doc/amdgpu-tweakd/config.example"
+ install -Dm644 config.example "${pkgdir}/etc/amdgpu-tweakd"
+}