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

Andrea Scarpino andrea at nymeria.archlinux.org
Tue Dec 31 15:01:19 UTC 2013


    Date: Tuesday, December 31, 2013 @ 16:01:18
  Author: andrea
Revision: 203004

Sed python files in prepare() so we don't get .py files newer than pyc/pyo

Modified:
  kdegames-kajongg/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-12-31 14:59:32 UTC (rev 203003)
+++ PKGBUILD	2013-12-31 15:01:18 UTC (rev 203004)
@@ -15,8 +15,14 @@
 source=("http://download.kde.org/stable/${pkgver}/src/kajongg-${pkgver}.tar.xz")
 sha1sums=('e0015f83ae9b1c879a860a07b4bf8dc9b1147575')
 
+prepare() {
+  mkdir build
+
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    kajongg-${pkgver}/src/{deferredutil,kajongg,kajonggserver,server}.py
+}
+
 build() {
-  mkdir build
   cd build
   cmake ../kajongg-${pkgver} \
     -DCMAKE_BUILD_TYPE=Release \
@@ -29,8 +35,4 @@
 package() {
   cd build
   make DESTDIR="${pkgdir}" install
-
-  # Fix the python shebang
-  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
-    "${pkgdir}"/usr/share/apps/kajongg/{deferredutil,kajongg,kajonggserver,server}.py
 }




More information about the arch-commits mailing list