summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD25
-rw-r--r--temp-throttle@.service9
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8d146607d9b
--- /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 00000000000..3c384746313
--- /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 00000000000..c20e4f91572
--- /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