diff options
author | Max | 2018-12-03 17:06:20 +1100 |
---|---|---|
committer | Max | 2018-12-03 17:06:20 +1100 |
commit | 2e079c3228b0422e2de95fa6713c17a8ce17c7fa (patch) | |
tree | 06250eebba26ed583731bb3be3ec1fddd56ff932 /PKGBUILD | |
download | aur-2e079c3228b0422e2de95fa6713c17a8ce17c7fa.tar.gz |
initial package upload
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f3e188570c12 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Max Chesterfield <`echo Y2hlc3RtMDA3QGhvdG1haWwuY29tCg== | base64 -d`> + + +pkgname=amdgpu-fan +pkgdesc="Python daemon for controlling the fans on amdgpu cards" +pkgver=0.0.1.r0.g0eeaa8e +pkgrel=1 +arch=('any') +license=('GPL2') +depends=('python' 'python-yaml' 'python-matplotlib' 'python-numpy' 'python-scipy') +makedepends=('python-setuptools') +url="https://github.com/chestm007/amdgpu-fan" +source=("git+https://github.com/chestm007/amdgpu-fan/") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/amdgpu-fan" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/amdgpu-fan" + sed -i "s/PROJECTVERSION/$pkgver/g" setup.py + python setup.py build +} + +package() { + cd "$srcdir/amdgpu-fan" + sed -i "s/PROJECTVERSION/$pkgver/g" setup.py + python setup.py install --prefix=/usr --root="$pkgdir" + mkdir -p "$pkgdir/usr/lib/systemd/system" + cp amdgpu-fan.service "$pkgdir/usr/lib/systemd/system/" +} |