[arch-commits] Commit in tali/repos (6 files)
Jan de Groot
jgc at nymeria.archlinux.org
Tue Apr 2 08:32:41 UTC 2013
Date: Tuesday, April 2, 2013 @ 10:32:40
Author: jgc
Revision: 181171
archrelease: copy trunk to gnome-unstable-i686, gnome-unstable-x86_64
Added:
tali/repos/gnome-unstable-i686/
tali/repos/gnome-unstable-i686/PKGBUILD
(from rev 181170, tali/trunk/PKGBUILD)
tali/repos/gnome-unstable-i686/tali.install
(from rev 181170, tali/trunk/tali.install)
tali/repos/gnome-unstable-x86_64/
tali/repos/gnome-unstable-x86_64/PKGBUILD
(from rev 181170, tali/trunk/PKGBUILD)
tali/repos/gnome-unstable-x86_64/tali.install
(from rev 181170, tali/trunk/tali.install)
------------------------------------+
gnome-unstable-i686/PKGBUILD | 36 +++++++++++++++++++++++++++++++++++
gnome-unstable-i686/tali.install | 34 +++++++++++++++++++++++++++++++++
gnome-unstable-x86_64/PKGBUILD | 36 +++++++++++++++++++++++++++++++++++
gnome-unstable-x86_64/tali.install | 34 +++++++++++++++++++++++++++++++++
4 files changed, 140 insertions(+)
Copied: tali/repos/gnome-unstable-i686/PKGBUILD (from rev 181170, tali/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-i686/PKGBUILD (rev 0)
+++ gnome-unstable-i686/PKGBUILD 2013-04-02 08:32:40 UTC (rev 181171)
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 168943 2012-10-16 16:31:44Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=tali
+pkgver=3.8.0
+pkgrel=1
+pkgdesc="Beat the odds in a poker-style dice game"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('desktop-file-utils' 'hicolor-icon-theme' 'gtk3' 'librsvg')
+makedepends=('intltool' 'itstool' 'gobject-introspection')
+conflicts=('gnome-games')
+replaces=('gnome-games')
+options=('!emptydirs' '!libtool')
+install=tali.install
+url="https://live.gnome.org/Tali"
+groups=('gnome-extra')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
+sha256sums=('77fa3a3804f51e40629799d441b34e9b01a665097be229bd94adb28d3dbc17d5')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-schemas-compile \
+ --with-scores-user=root --with-scores-group=games
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # Remove all scores, we generate them from postinstall
+ rm -rf "$pkgdir/var"
+}
Copied: tali/repos/gnome-unstable-i686/tali.install (from rev 181170, tali/trunk/tali.install)
===================================================================
--- gnome-unstable-i686/tali.install (rev 0)
+++ gnome-unstable-i686/tali.install 2013-04-02 08:32:40 UTC (rev 181171)
@@ -0,0 +1,34 @@
+_scores=(
+ gtali.Colors.scores
+ gtali.Regular.scores
+)
+
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -q -f usr/share/icons/hicolor
+
+ for score in "${_scores[@]}" ; do
+ if [ -e "var/games/$score" ]; then
+ continue
+ fi
+
+ touch "var/games/$score"
+ chown root:games "var/games/$score"
+ chmod 664 "var/games/$score"
+ done
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -q -f usr/share/icons/hicolor
+
+ for score in "${_scores[@]}" ; do
+ rm -f "var/games/$score"
+ done
+}
Copied: tali/repos/gnome-unstable-x86_64/PKGBUILD (from rev 181170, tali/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD 2013-04-02 08:32:40 UTC (rev 181171)
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 168943 2012-10-16 16:31:44Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=tali
+pkgver=3.8.0
+pkgrel=1
+pkgdesc="Beat the odds in a poker-style dice game"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('desktop-file-utils' 'hicolor-icon-theme' 'gtk3' 'librsvg')
+makedepends=('intltool' 'itstool' 'gobject-introspection')
+conflicts=('gnome-games')
+replaces=('gnome-games')
+options=('!emptydirs' '!libtool')
+install=tali.install
+url="https://live.gnome.org/Tali"
+groups=('gnome-extra')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
+sha256sums=('77fa3a3804f51e40629799d441b34e9b01a665097be229bd94adb28d3dbc17d5')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-schemas-compile \
+ --with-scores-user=root --with-scores-group=games
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # Remove all scores, we generate them from postinstall
+ rm -rf "$pkgdir/var"
+}
Copied: tali/repos/gnome-unstable-x86_64/tali.install (from rev 181170, tali/trunk/tali.install)
===================================================================
--- gnome-unstable-x86_64/tali.install (rev 0)
+++ gnome-unstable-x86_64/tali.install 2013-04-02 08:32:40 UTC (rev 181171)
@@ -0,0 +1,34 @@
+_scores=(
+ gtali.Colors.scores
+ gtali.Regular.scores
+)
+
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -q -f usr/share/icons/hicolor
+
+ for score in "${_scores[@]}" ; do
+ if [ -e "var/games/$score" ]; then
+ continue
+ fi
+
+ touch "var/games/$score"
+ chown root:games "var/games/$score"
+ chmod 664 "var/games/$score"
+ done
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -q -f usr/share/icons/hicolor
+
+ for score in "${_scores[@]}" ; do
+ rm -f "var/games/$score"
+ done
+}
More information about the arch-commits
mailing list