summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD33
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..88bd1cc0062
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+# Generated by mksrcinfo v8
+# Wed Sep 27 15:45:18 UTC 2017
+pkgbase = caffeine-bzr
+ pkgdesc = A easy way to control powersaving on your desktop.
+ pkgver = r665
+ pkgrel = 1
+ url = https://launchpad.net/caffeine
+ arch = any
+ license = GPL3
+ makedepends = bzr
+ depends = python2-gobject
+ depends = python2-ewmh
+ provides = caffeine
+ provides = caffeine-ng
+ provides = caffeine-oneclick
+ provides = caffeine-systray
+ conflicts = caffeine
+ conflicts = caffeine-ng
+ conflicts = caffeine-oneclick
+ conflicts = caffeine-systray
+ replaces = caffeine-oneclick
+ replaces = caffeine-systray
+ options = !emptydirs
+ options = !libtool
+ source = caffeine-bzr::bzr+https://code.launchpad.net/~caffeine-developers/caffeine/main
+ md5sums = SKIP
+
+pkgname = caffeine-bzr
+
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
+}