summaryrefslogtreecommitdiff
path: root/extra/lightsoff
diff options
context:
space:
mode:
Diffstat (limited to 'extra/lightsoff')
-rw-r--r--extra/lightsoff/PKGBUILD32
-rw-r--r--extra/lightsoff/lightsoff.install13
2 files changed, 45 insertions, 0 deletions
diff --git a/extra/lightsoff/PKGBUILD b/extra/lightsoff/PKGBUILD
new file mode 100644
index 000000000..3e8780c64
--- /dev/null
+++ b/extra/lightsoff/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 168943 2012-10-16 16:31:44Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+
+pkgname=lightsoff
+pkgver=3.8.0
+pkgrel=1
+pkgdesc="Turn off all the lights"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('desktop-file-utils' 'hicolor-icon-theme' 'clutter-gtk' 'librsvg')
+makedepends=('intltool' 'itstool' 'gobject-introspection')
+conflicts=('gnome-games')
+replaces=('gnome-games')
+options=('!emptydirs' '!libtool')
+install=lightsoff.install
+url="https://live.gnome.org/Lightsoff"
+groups=('gnome-extra')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
+sha256sums=('767f7876c6f360b0e3c18243c7e2201ea0a31523df890853a572d0325d91c24b')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-schemas-compile
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
diff --git a/extra/lightsoff/lightsoff.install b/extra/lightsoff/lightsoff.install
new file mode 100644
index 000000000..0730c1a47
--- /dev/null
+++ b/extra/lightsoff/lightsoff.install
@@ -0,0 +1,13 @@
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -f -q usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}