summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6dff31e9173a7c028d43742c610734771746c8f7 (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
# Maintainer: Andreas Born <futur[DOT]andy[AT]googlemail[DOT]com>
# Contributor: James Reed <supplantr at archlinux dot info>

_pkgname=ftw
pkgname=$_pkgname-git
pkgver=20140131.15
pkgrel=1
pkgdesc='A configurable power saving script with udev rules.'
arch=('any')
url='https://github.com/supplantr/ftw'
license=('GPL3')
depends=('udev' 'hdparm' 'iw')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
backup=('etc/conf.d/ftw')
source=("$_pkgname::git://github.com/supplantr/ftw.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    echo "$(git log -1 --format="%cd" --date=short | sed 's|-||g').$(git rev-list --count master)"
}

package() {
    cd "$srcdir/$_pkgname"
    install -Dm755 ftw "$pkgdir/usr/bin/ftw"
    install -Dm644 ftw.rules "$pkgdir/usr/lib/udev/rules.d/99-ftw.rules"
    install -Dm644 etc-conf.d/ftw "$pkgdir/etc/conf.d/ftw"
}