diff options
author | Muflone | 2015-11-05 23:18:48 +0100 |
---|---|---|
committer | Muflone | 2015-11-05 23:18:48 +0100 |
commit | 1477b3dee45ae1aa98f62b5c205fe389cbbd7eab (patch) | |
tree | 7ae6f132f98dcdbde9e62098d7c9ffd2004a17cb | |
download | aur-1477b3dee45ae1aa98f62b5c205fe389cbbd7eab.tar.gz |
New package temp-throttle 2.20-1
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | temp-throttle@.service | 9 |
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8d146607d9b9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = temp-throttle + pkgdesc = A shell script for throttling system CPU frequency based on a desired maximum temperature. + pkgver = 2.20 + pkgrel = 1 + url = https://github.com/Sepero/temp-throttle + arch = any + license = GPL2 + source = temp-throttle-v2.20.tar.gz::https://github.com/Sepero/temp-throttle/archive/v2.20.tar.gz + source = temp-throttle@.service + sha256sums = 4ab30f204bdf407ebbfa5abdaa3b3d780e3bc674dca0bb08dbde650ccc015cf7 + sha256sums = 18ae3edd7b41508da279df6d67f1c5d86e1dbfe2daebbc42bbe39c26031b22e0 + +pkgname = temp-throttle + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3c384746313d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Muflone http://www.muflone.com/contacts/english/ +# Contributor: Ryan Young <ry an. ry. young@gmail.com> (omit spaces) + +pkgname=temp-throttle +pkgver=2.20 +pkgrel=1 +pkgdesc="A shell script for throttling system CPU frequency based on a desired maximum temperature." +arch=('any') +url="https://github.com/Sepero/temp-throttle" +license=('GPL2') +source=("${pkgname}-v${pkgver}.tar.gz"::"https://github.com/Sepero/${pkgname}/archive/v${pkgver}.tar.gz" + "${pkgname}@.service") +sha256sums=('4ab30f204bdf407ebbfa5abdaa3b3d780e3bc674dca0bb08dbde650ccc015cf7' + '18ae3edd7b41508da279df6d67f1c5d86e1dbfe2daebbc42bbe39c26031b22e0') + +package() { + cd "${pkgname}-${pkgver}" + install -m 755 -d "${pkgdir}/usr/bin" + install -m 755 'temp_throttle.sh' "${pkgdir}/usr/bin/${pkgname}" + install -m 755 -d "${pkgdir}/usr/share/doc/${pkgname}" + install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "README.md" + install -m 755 -d "${pkgdir}/usr/lib/systemd/system" + install -m 644 -t "${pkgdir}/usr/lib/systemd/system" "${srcdir}/${pkgname}@.service" +} + diff --git a/temp-throttle@.service b/temp-throttle@.service new file mode 100644 index 000000000000..c20e4f915722 --- /dev/null +++ b/temp-throttle@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Throttle system CPU frequency based on a maximum temperature + +[Service] +ExecStart=/usr/bin/temp-throttle %i +Type=simple + +[Install] +WantedBy=multi-user.target |