summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e00ba473e40b9c4fb17a6b1c63328c5241a7b84e (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
# Maintainer: Hong Shick Pak <hong@hspak.com>

pkgname=simpfand-git
pkgver=v4.2.9.gaa475fc
pkgrel=1
pkgdesc="A simple fan control daemon for ThinkPads"
arch=('i686' 'x86_64')
url="http://github.com/hspak/simpfand"
license=('MIT')
depends=()
makedepends=('git')
conflicts=('simpfand')
provides=('simpfand')
source=("git://github.com/hspak/simpfand")
install=simpfand-git.install
md5sums=('SKIP')

pkgver() {
  cd 'simpfand'
  git describe | sed 's/-/./g'
}

build() {
  make -C simpfand
}

package() {
  make -C simpfand PREFIX=/usr DESTDIR="$pkgdir" install
  install -D -m644 "${srcdir}/simpfand/simpfand.service" "${pkgdir}/usr/lib/systemd/system/simpfand.service"
  install -D -m755 "${srcdir}/simpfand/restart-simpfand.sh" "${pkgdir}/usr/lib/systemd/system-sleep/restart-simpfand.sh"

  # license
  install -D -m644 "${srcdir}/simpfand/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim: ft=sh syn=sh et