blob: dd75a1e8890d3df5d01a18eaf17efea7c0774692 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: Ryan Young <ry an. ry. young@gmail.com> (omit spaces)
pkgname=temp-throttle-git
pkgver=r94.e89c5fd
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')
depends=('bash')
makedepends=('git')
conflicts=("temp-throttle")
backup=("etc/temp-throttle.conf")
source=("git://github.com/Sepero/${pkgname%-git}.git#branch=testing")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
printf "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
package() {
cd "${pkgname%-git}"
# Install executable
install -m 755 -d "${pkgdir}/usr/bin"
install -m 755 -t "${pkgdir}/usr/bin" "usr/sbin/${pkgname%-git}"
# Install configuration file
install -m 755 -d "${pkgdir}/etc"
install -m 755 -t "${pkgdir}/etc" "etc/${pkgname%-git}.conf"
# Install documentation
install -m 755 -d "${pkgdir}/usr/share/doc/${pkgname}"
install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "usr/share/doc/${pkgname%-git}/README"
install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "usr/share/doc/${pkgname%-git}/credits.txt"
# Install systemd service
install -m 755 -d "${pkgdir}/usr/lib/systemd/system"
install -m 644 -t "${pkgdir}/usr/lib/systemd/system" "usr/lib/systemd/system/${pkgname%-git}.service"
}
|