[arch-commits] Commit in singularity/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Aug 28 07:03:16 UTC 2014


    Date: Thursday, August 28, 2014 @ 09:03:16
  Author: svenstaro
Revision: 117999

upgpkg: singularity 0.30c-7

mtime rebuild

Modified:
  singularity/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-28 06:55:01 UTC (rev 117998)
+++ PKGBUILD	2014-08-28 07:03:16 UTC (rev 117999)
@@ -5,7 +5,7 @@
 
 pkgname=singularity
 pkgver=0.30c
-pkgrel=6
+pkgrel=7
 pkgdesc="Strategy game - simulation of true AI"
 arch=('any')
 url="http://emhsoft.com/singularity/index.html"
@@ -20,8 +20,12 @@
          'fe74e41d2d35dd1907342dea8b078651'
          'c0f49fb6d31a2cf4c0b80393df2aad16')
 
-build() {
+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() {
@@ -30,7 +34,6 @@
   # 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"
@@ -43,5 +46,8 @@
   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:




More information about the arch-commits mailing list