summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ce92287e505
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Stephen Smith <stephen304@gmail.com>
+
+pkgname=caffeine-bzr
+pkgver=r665
+pkgrel=1
+pkgdesc="A easy way to control powersaving on your desktop."
+arch=(any)
+url="https://launchpad.net/caffeine"
+license=(GPL3)
+depends=(python2-gobject python2-ewmh)
+makedepends=(bzr)
+conflicts=(caffeine caffeine-ng caffeine-oneclick caffeine-systray)
+provides=(caffeine caffeine-ng caffeine-oneclick caffeine-systray)
+replaces=(caffeine-oneclick caffeine-systray)
+options=(!emptydirs !libtool)
+source=("$pkgname::bzr+https://code.launchpad.net/~caffeine-developers/caffeine/main")
+
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir"/"$pkgname"
+ printf "r%s" "$(bzr revno)"
+}
+
+build() {
+ cd "$srcdir"/"$pkgname"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir"/"$pkgname"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}