summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Born2017-02-28 18:09:22 +0100
committerAndreas Born2017-02-28 18:09:22 +0100
commite7758751fff7fc571f8759bda376153c42616d8a (patch)
tree8ede19a225b4c4bc18a587e15a2e8842d5787e1f /PKGBUILD
downloadaur-ftw-git.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6dff31e9173
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}