[arch-commits] Commit in singularity/repos/community-any (6 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Thu Aug 28 07:03:20 UTC 2014
Date: Thursday, August 28, 2014 @ 09:03:20
Author: svenstaro
Revision: 118000
archrelease: copy trunk to community-any
Added:
singularity/repos/community-any/PKGBUILD
(from rev 117999, singularity/trunk/PKGBUILD)
singularity/repos/community-any/singularity
(from rev 117999, singularity/trunk/singularity)
singularity/repos/community-any/singularity.desktop
(from rev 117999, singularity/trunk/singularity.desktop)
Deleted:
singularity/repos/community-any/PKGBUILD
singularity/repos/community-any/singularity
singularity/repos/community-any/singularity.desktop
---------------------+
PKGBUILD | 100 ++++++++++++++++++++++++++------------------------
singularity | 6 +--
singularity.desktop | 22 +++++------
3 files changed, 67 insertions(+), 61 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2014-08-28 07:03:16 UTC (rev 117999)
+++ PKGBUILD 2014-08-28 07:03:20 UTC (rev 118000)
@@ -1,47 +0,0 @@
-# $Id$
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Contributor: Lone_Wolf <lonewolf at xs4all.nl>
-# Contributor: sausageandeggs <s_stoakley at hotmail.co.uk>
-
-pkgname=singularity
-pkgver=0.30c
-pkgrel=6
-pkgdesc="Strategy game - simulation of true AI"
-arch=('any')
-url="http://emhsoft.com/singularity/index.html"
-license=('GPL2' 'custom')
-depends=('python2' 'python2-pygame' 'sdl_image' 'sdl_mixer' 'python2-numpy')
-source=("http://endgame-singularity.googlecode.com/files/$pkgname-$pkgver-src.tar.gz" \
- "http://endgame-singularity.googlecode.com/files/endgame-$pkgname-music-006.zip" \
- "singularity"
- "singularity.desktop")
-md5sums=('ea4e7d28dd19c33585691ee608672a63'
- 'f16d550add4df9c41d4fd68d8ebff40c'
- 'fe74e41d2d35dd1907342dea8b078651'
- 'c0f49fb6d31a2cf4c0b80393df2aad16')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- # install game
- install -Dm644 singularity.py $pkgdir/usr/share/singularity/singularity.py
- cp -R code data "$srcdir/endgame-$pkgname-music-006/music" "$pkgdir/usr/share/$pkgname"
- sed -i 's|/usr/bin/env python|/usr/bin/env python2|g' "$pkgdir/usr/share/$pkgname/code/singularity.py"
-
- # install shell script
- install -Dm755 "$srcdir/singularity" "$pkgdir/usr/bin/singularity"
-
- # desktop file
- install -Dm644 "$srcdir/singularity.desktop" "$pkgdir/usr/share/applications/singularity.desktop"
-
- # license: code is GPL2, but data & music fall under other licenses
- install -Dm644 README.txt "$pkgdir/usr/share/doc/$pkgname/README.txt"
- install -d "$pkgdir/usr/share/licenses/$pkgname/"
- cd "$pkgdir/usr/share/licenses/$pkgname/"
- ln -s ../../doc/$pkgname/README.txt .
-}
-# vim: sw=2:ts=2 et:
Copied: singularity/repos/community-any/PKGBUILD (from rev 117999, singularity/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2014-08-28 07:03:20 UTC (rev 118000)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Lone_Wolf <lonewolf at xs4all.nl>
+# Contributor: sausageandeggs <s_stoakley at hotmail.co.uk>
+
+pkgname=singularity
+pkgver=0.30c
+pkgrel=7
+pkgdesc="Strategy game - simulation of true AI"
+arch=('any')
+url="http://emhsoft.com/singularity/index.html"
+license=('GPL2' 'custom')
+depends=('python2' 'python2-pygame' 'sdl_image' 'sdl_mixer' 'python2-numpy')
+source=("http://endgame-singularity.googlecode.com/files/$pkgname-$pkgver-src.tar.gz" \
+ "http://endgame-singularity.googlecode.com/files/endgame-$pkgname-music-006.zip" \
+ "singularity"
+ "singularity.desktop")
+md5sums=('ea4e7d28dd19c33585691ee608672a63'
+ 'f16d550add4df9c41d4fd68d8ebff40c'
+ 'fe74e41d2d35dd1907342dea8b078651'
+ 'c0f49fb6d31a2cf4c0b80393df2aad16')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ sed -i 's|/usr/bin/env python|/usr/bin/env python2|g' "code/singularity.py"
+
+ find . -name \*.pyc -delete
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # install game
+ install -Dm644 singularity.py $pkgdir/usr/share/singularity/singularity.py
+ cp -R code data "$srcdir/endgame-$pkgname-music-006/music" "$pkgdir/usr/share/$pkgname"
+
+ # install shell script
+ install -Dm755 "$srcdir/singularity" "$pkgdir/usr/bin/singularity"
+
+ # desktop file
+ install -Dm644 "$srcdir/singularity.desktop" "$pkgdir/usr/share/applications/singularity.desktop"
+
+ # license: code is GPL2, but data & music fall under other licenses
+ install -Dm644 README.txt "$pkgdir/usr/share/doc/$pkgname/README.txt"
+ install -d "$pkgdir/usr/share/licenses/$pkgname/"
+ cd "$pkgdir/usr/share/licenses/$pkgname/"
+ ln -s ../../doc/$pkgname/README.txt .
+
+ python2 -m compileall "$pkgdir/usr/share/$pkgname"
+ python2 -O -m compileall "$pkgdir/usr/share/$pkgname"
+}
+# vim: sw=2:ts=2 et:
Deleted: singularity
===================================================================
--- singularity 2014-08-28 07:03:16 UTC (rev 117999)
+++ singularity 2014-08-28 07:03:20 UTC (rev 118000)
@@ -1,3 +0,0 @@
-#!/bin/sh
-cd /usr/share/singularity
-exec python2 singularity.py "$@"
Copied: singularity/repos/community-any/singularity (from rev 117999, singularity/trunk/singularity)
===================================================================
--- singularity (rev 0)
+++ singularity 2014-08-28 07:03:20 UTC (rev 118000)
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/singularity
+exec python2 singularity.py "$@"
Deleted: singularity.desktop
===================================================================
--- singularity.desktop 2014-08-28 07:03:16 UTC (rev 117999)
+++ singularity.desktop 2014-08-28 07:03:20 UTC (rev 118000)
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Name=Endgame: Singularity
-Comment=Simulation of true AI
-Icon=/usr/share/singularity/data/images/icon.png
-Exec=/usr/bin/singularity
-Path=
-Terminal=false
-StartupNotify=false
-Categories=Game;Simulation;
Copied: singularity/repos/community-any/singularity.desktop (from rev 117999, singularity/trunk/singularity.desktop)
===================================================================
--- singularity.desktop (rev 0)
+++ singularity.desktop 2014-08-28 07:03:20 UTC (rev 118000)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Endgame: Singularity
+Comment=Simulation of true AI
+Icon=/usr/share/singularity/data/images/icon.png
+Exec=/usr/bin/singularity
+Path=
+Terminal=false
+StartupNotify=false
+Categories=Game;Simulation;
More information about the arch-commits
mailing list