summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-08-04 13:30:55 -0600
committerMark Wagie2020-08-04 13:30:55 -0600
commit4885e4993c3b758afb6bdad0d8610ec2854a69c1 (patch)
treeaefc466fefbfd882c2633cea7fe34a9fddbe65ee
downloadaur-4885e4993c3b758afb6bdad0d8610ec2854a69c1.tar.gz
initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD23
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..082fbc47c04
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-pyamdgpuinfo
+ pkgdesc = AMD GPU stats
+ pkgver = 2.0.0
+ pkgrel = 1
+ url = https://github.com/mark9064/pyamdgpuinfo
+ arch = x86_64
+ license = GPL3
+ makedepends = python-setuptools
+ makedepends = cython
+ depends = python
+ depends = libdrm
+ source = https://pypi.org/packages/source/p/pyamdgpuinfo/pyamdgpuinfo-2.0.0.tar.gz
+ sha256sums = 32ee95d818270c6617c59f778a40eb304ae030c0f1ee7e09bfb14b483e00a827
+
+pkgname = python-pyamdgpuinfo
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9921cf0a749
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
+pkgname=python-pyamdgpuinfo
+_name=${pkgname#python-}
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="AMD GPU stats"
+arch=('x86_64')
+url="https://github.com/mark9064/pyamdgpuinfo"
+license=('GPL3')
+depends=('python' 'libdrm')
+makedepends=('python-setuptools' 'cython')
+source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('32ee95d818270c6617c59f778a40eb304ae030c0f1ee7e09bfb14b483e00a827')
+
+build() {
+ cd "$_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_name-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}