aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnjandev Momi <anjan@momi.ca>2022-06-27 22:21:13 +0000
committeralice <alice@ayaya.dev>2022-06-27 22:22:46 +0000
commit6cdeeacbdcca8c710a4b06820bda7e35e696b118 (patch)
tree069e91c5cf5051c2051ba3ac1713dfefb8fb8741
parent57c4c46fab9a8f1d512bf7549a49d245334a9667 (diff)
downloadaports-6cdeeacbdcca8c710a4b06820bda7e35e696b118.tar.gz
aports-6cdeeacbdcca8c710a4b06820bda7e35e696b118.tar.bz2
aports-6cdeeacbdcca8c710a4b06820bda7e35e696b118.tar.xz
testing/amdgpu-fan: new aport
-rw-r--r--testing/amdgpu-fan/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/amdgpu-fan/APKBUILD b/testing/amdgpu-fan/APKBUILD
new file mode 100644
index 0000000000..cc0fc31fb2
--- /dev/null
+++ b/testing/amdgpu-fan/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Anjandev Momi <anjan@momi.ca>
+# Maintainer: Anjandev Momi <anjan@momi.ca>
+pkgname=amdgpu-fan
+pkgver=0.1.0
+pkgrel=0
+pkgdesc="Fan controller for AMD graphics cards running the amdgpu driver on Linux"
+url="https://github.com/zzkW35/amdgpu-fan"
+arch="noarch"
+license="GPL-2.0-or-later"
+depends="python3 py3-yaml py3-numpy"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+source="$pkgname-$pkgver.tar.gz::https://github.com/zzkW35/amdgpu-fan/archive/refs/tags/$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+
+ sed -i "s/PROJECTVERSION/$pkgver/g" setup.py
+}
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ PYTHONPATH="$PWD/build/lib" pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="
+b21d8e413d44a263fdbef37fff11a496fe5e46a1f4d1e7ade161dde36750cf0dc02dfd2ccaebc455dac5aa023150101a65a255a38e6d9b70a6bba39da8f26378 amdgpu-fan-0.1.0.tar.gz
+"