summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Born2017-02-28 18:09:22 +0100
committerAndreas Born2017-02-28 18:09:22 +0100
commite7758751fff7fc571f8759bda376153c42616d8a (patch)
tree8ede19a225b4c4bc18a587e15a2e8842d5787e1f
downloadaur-ftw-git.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD30
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..19c6ca79308
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ftw-git
+ pkgdesc = A configurable power saving script with udev rules.
+ pkgver = 20140131.15
+ pkgrel = 1
+ url = https://github.com/supplantr/ftw
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = udev
+ depends = hdparm
+ depends = iw
+ provides = ftw
+ conflicts = ftw
+ backup = etc/conf.d/ftw
+ source = ftw::git://github.com/supplantr/ftw.git
+ md5sums = SKIP
+
+pkgname = ftw-git
+
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"
+}