blob: 42e28003a980b12ac28b52ddf7631f958e4ded36 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=tlp
_pkgname=TLP
pkgver=1.2.1
pkgrel=0
pkgdesc="Linux Advanced Power Management"
url="http://linrunner.de/en/tlp/tlp.html"
arch="noarch"
license="GPL-2.0+"
options="!check" # no test suite
makedepends="coreutils"
subpackages="$pkgname-doc $pkgname-rdw:rdw $pkgname-bash-completion:bashcomp"
source="$pkgname-$pkgver.tar.gz::https://github.com/linrunner/$_pkgname/archive/$pkgver.tar.gz
$pkgname.initd"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install-tlp
install -dm755 "$pkgdir"/usr/share/man/man1
install -m644 man/*.1 "$pkgdir"/usr/share/man/man1
install -dm755 "$pkgdir"/usr/share/man/man8
install -m644 man/*.8 "$pkgdir"/usr/share/man/man8
install -m755 "$srcdir"/tlp.initd "$pkgdir"/etc/init.d/$pkgname
}
rdw() {
pkgdesc="Linux Advanced Power Management - Radio Device Wizard"
depends="tlp"
cd "$builddir"
make DESTDIR="$subpkgdir" install-rdw
}
bashcomp() {
pkgdesc="Bash completions for $pkgname"
depends=""
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
}
sha512sums="c5cf2c9cb4d5e1e0ad693ab73f7971486671dab9b785a4e121b3550f5b096a8b028bd9d116851db6402ab7ccd9b3fe944d138fd35dc17d826482c59257f12c9f tlp-1.2.1.tar.gz
e6de216b2540413812711b3304cdc29c8729d527080cfd747ba382db50166dd21c6c27ff467f9f2a967e92007c7a311b00e88262952c34a22f417578c66cf4e7 tlp.initd"
|