amdgpu-fan
This commit is contained in:
parent
3ccc418dcb
commit
29f179ead5
4 changed files with 81 additions and 0 deletions
16
amdgpu-fan/.SRCINFO
Normal file
16
amdgpu-fan/.SRCINFO
Normal file
|
@ -0,0 +1,16 @@
|
|||
pkgbase = amdgpu-fan
|
||||
pkgdesc = Python daemon for controlling the fans on AMDGPU cards
|
||||
pkgver = 0.1.0
|
||||
pkgrel = 3
|
||||
url = https://github.com/zzkW35/amdgpu-fan
|
||||
arch = any
|
||||
license = GPL2
|
||||
makedepends = python-setuptools
|
||||
depends = python
|
||||
depends = python-yaml
|
||||
depends = python-numpy
|
||||
source = amdgpu-fan-0.1.0.tar.gz::https://github.com/zzkW35/amdgpu-fan/archive/0.1.0.tar.gz
|
||||
md5sums = SKIP
|
||||
|
||||
pkgname = amdgpu-fan
|
||||
|
27
amdgpu-fan/PKGBUILD
Normal file
27
amdgpu-fan/PKGBUILD
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Maintainer: Eric Cheng <ericcheng@hey.com>
|
||||
# Maintainer: Filippo Roggi <zzkw35@gmail.com>
|
||||
# Contributor: Max Chesterfield <`echo Y2hlc3RtMDA3QGhvdG1haWwuY29tCg== | base64 -d`>
|
||||
|
||||
pkgname=amdgpu-fan
|
||||
pkgdesc="Python daemon for controlling the fans on AMDGPU cards"
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
license=('GPL2')
|
||||
depends=('python' 'python-yaml' 'python-numpy')
|
||||
makedepends=('python-setuptools')
|
||||
url="https://github.com/zzkW35/amdgpu-fan"
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/zzkW35/amdgpu-fan/archive/${pkgver}.tar.gz")
|
||||
md5sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
sed -i "s/PROJECTVERSION/$pkgver/g" setup.py
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
sed -i "s/PROJECTVERSION/$pkgver/g" setup.py
|
||||
python setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
9
amdgpu-fan/amdgpu-fan.service
Normal file
9
amdgpu-fan/amdgpu-fan.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=AMDGPU fan controller
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/amdgpu-fan
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
29
amdgpu-fan/setup.py
Normal file
29
amdgpu-fan/setup.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
from distutils.core import setup
|
||||
|
||||
from setuptools import find_packages
|
||||
|
||||
with open('README.md') as f:
|
||||
readme = f.read()
|
||||
|
||||
|
||||
setup(
|
||||
name='amdgpu_fan',
|
||||
version='PROJECTVERSION',
|
||||
packages=find_packages(),
|
||||
url='https://github.com/chestm007/amdgpu-fan',
|
||||
license='GPL-2.0',
|
||||
author='Max Chesterfield',
|
||||
author_email='chestm007@hotmail.com',
|
||||
maintainer='Filippo Roggi',
|
||||
maintainer_email='zzkw35@gmail.com',
|
||||
description='amdgpu fan controller',
|
||||
long_description=readme,
|
||||
install_requires=[
|
||||
'pyyaml',
|
||||
'numpy',
|
||||
],
|
||||
entry_points="""
|
||||
[console_scripts]
|
||||
amdgpu-fan=amdgpu_fan.controller:main
|
||||
""",
|
||||
)
|
Loading…
Reference in a new issue