summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c8f68a75914edbcc8b0c06c8caeca039c744e9c (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
# Maintainer: Wai <waicool20@gmail.com>
pkgname=fw-fanctrl-ui-git
pkgver=r7.db8939a
pkgrel=1
pkgdesc="Framework Fan Control UI"
arch=('any')
url="https://github.com/waicool20/fw-fanctrl-ui"
license=('GPLv3')
source=('fw-fanctrl-ui::git+https://github.com/waicool20/fw-fanctrl-ui.git')
md5sums=("SKIP")
depends=(
  'fw-fanctrl-git'
  'python-pystray'
)

pkgver() {
  cd "fw-fanctrl-ui"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
	cd "${srcdir}/fw-fanctrl-ui"

  install_dir="$pkgdir/opt/fw-fanctrl-ui/"
  desktop_dir="$pkgdir/usr/share/applications"

  mkdir -p "$install_dir" "$desktop_dir"

  cp fw-fanctrl-ui.py "$install_dir"
  cp favicon.ico "$install_dir"
  cp fw-fanctrl-ui.desktop "$desktop_dir"
}