summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoansala2015-11-10 13:25:29 +0100
committerjoansala2015-11-10 13:25:29 +0100
commita11ab9e9a0597496e17786cdfab1b3cd68b817f7 (patch)
tree6a237f9b5f4aa83dbc157f578a40ff960098cf5b
downloadaur-a11ab9e9a0597496e17786cdfab1b3cd68b817f7.tar.gz
New version of Aualé
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD71
-rw-r--r--auale.install20
3 files changed, 113 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f89fdd86161
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = auale
+ pkgdesc = A free mancala game for the serious player
+ pkgver = 1.1.0
+ pkgrel = 1
+ url = http://www.joansala.com/auale
+ install = auale.install
+ arch = any
+ license = GPL3
+ makedepends = python-setuptools
+ depends = python>=2.6
+ depends = gtk3>=3.10
+ depends = java-runtime=7
+ depends = java-environment=7
+ depends = python-gobject
+ depends = desktop-file-utils
+ depends = sdl2
+ depends = sdl2_mixer
+ replaces = python2-auale
+ source = http://www.joansala.com/auale/packages/auale-1.1.0.tar.gz
+ sha256sums = c37602d569ebc66ee38381e7f801b198e68b5bdbbfb8052a4cf6d12df2407dd1
+
+pkgname = auale \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ee9ae82cee5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Andrew Dabrowski <dabrowsa@indiana.edu>
+# Contributor: Joan Sala Soler <contact@joansala.com>
+
+pkgname=auale
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="A free mancala game for the serious player"
+arch=('any')
+url="http://www.joansala.com/auale"
+license=('GPL3')
+groups=()
+depends=(
+ 'python>=2.6'
+ 'gtk3>=3.10'
+ 'java-runtime=7'
+ 'java-environment=7'
+ 'python-gobject'
+ 'desktop-file-utils'
+ 'sdl2'
+ 'sdl2_mixer'
+)
+makedepends=(
+ 'python-setuptools'
+)
+replaces=('python2-auale')
+install=${pkgname}.install
+source=("http://www.joansala.com/auale/packages/$pkgname-$pkgver.tar.gz")
+sha256sums=('c37602d569ebc66ee38381e7f801b198e68b5bdbbfb8052a4cf6d12df2407dd1')
+
+build() {
+ pushd ${pkgname}-${pkgver}/src/${pkgname}
+ python setup.py build
+ popd
+}
+
+package() {
+ pushd ${pkgname}-${pkgver}/src/${pkgname}
+ python setup.py install \
+ --root=${pkgdir} \
+ --install-lib=/usr/share/${pkgname} \
+ --skip-build
+ popd
+
+ # Link the game launcher
+ install -d ${pkgdir}/usr/bin
+ ln -s /usr/share/${pkgname}/__main__.py \
+ ${pkgdir}/usr/bin/${pkgname}
+ chmod +x ${pkgdir}/usr/share/${pkgname}/__main__.py
+
+ # Install dist files
+ pushd ${pkgname}-${pkgver}/res/share
+ install -D -m644 applications/${pkgname}.desktop \
+ ${pkgdir}/usr/share/applications/${pkgname}.desktop
+ install -D -m644 glib-2.0/schemas/com.joansala.${pkgname}.gschema.xml \
+ ${pkgdir}/usr/share/glib-2.0/schemas/com.joansala.${pkgname}.gschema.xml
+ install -D -m644 man/man6/${pkgname}.6 \
+ ${pkgdir}/usr/share/man/man6/${pkgname}.6
+ install -D -m644 mime/packages/${pkgname}.xml \
+ ${pkgdir}/usr/share/mime/packages/${pkgname}.xml
+ install -D -m644 icons/hicolor/scalable/mimetypes/text-x-oware-ogn.svg \
+ ${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes/text-x-oware-ogn.svg
+ install -D -m644 icons/hicolor/scalable/apps/${pkgname}.svg \
+ ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg
+ popd
+
+ # Move installed locales
+ pushd ${pkgdir}/usr/share/${pkgname}/res
+ mv -v messages ${pkgdir}/usr/share/locale
+ popd
+} \ No newline at end of file
diff --git a/auale.install b/auale.install
new file mode 100644
index 00000000000..04b51dffab8
--- /dev/null
+++ b/auale.install
@@ -0,0 +1,20 @@
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas || :
+ gtk-update-icon-cache usr/share/icons &> /dev/null || :
+ update-mime-database usr/share/mime &> /dev/null || :
+ update-desktop-database &> /dev/null || :
+}
+
+post_upgrade() {
+ glib-compile-schemas usr/share/glib-2.0/schemas || :
+ gtk-update-icon-cache usr/share/icons &> /dev/null || :
+ update-mime-database usr/share/mime &> /dev/null || :
+ update-desktop-database &> /dev/null || :
+}
+
+post_remove() {
+ glib-compile-schemas usr/share/glib-2.0/schemas || :
+ gtk-update-icon-cache usr/share/icons &> /dev/null || :
+ update-mime-database usr/share/mime &> /dev/null || :
+ update-desktop-database &> /dev/null || :
+} \ No newline at end of file