summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fca852634d65a3d516d7260ae72770a9a58a5199 (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
# Maintainer: ustcpetergu <ustcymgu@gmail.com>
pkgname=silitune
pkgver=r36.3325994
pkgrel=1
pkgdesc="A battery saver, undervolting tuner and CPU manager with GUI"
arch=('x86_64')
url='https://github.com/ustcpetergu/silitune'
license=('GPL')
groups=()
depends=('intel-undervolt' 'tlp' 'python-pyqt5' 'python-matplotlib' 'gksu')
makedepends=('git')
optdepends=('p7zip: benchmark support')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(silitune::git+https://github.com/ustcpetergu/SiliTune)
noextract=()
md5sums=('SKIP') #autofill using updpkgsums

pkgver() {
    cd "$srcdir/${pkgname}"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    true
}

check() {
    true
}

package() {
  cd "$srcdir/${pkgname}"

  install -D ./silitune.conf "$pkgdir/etc/silitune.conf"
  install -D -m755 ./silitune.py "$pkgdir/usr/bin/silitune"
  install -d "$pkgdir/usr/share/applications" "$pkgdir/usr/lib/silitune" "$pkgdir/var/lib/silitune"
  install -D ./silitune.desktop "$pkgdir/usr/share/applications/SiliTune.desktop"
  install -D ./icon.png ./logo.png ./sililib.py ./plotter.py "$pkgdir/usr/lib/silitune/"
}