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

Ronald van Haren ronald at archlinux.org
Wed Aug 27 20:21:39 UTC 2014


    Date: Wednesday, August 27, 2014 @ 22:21:39
  Author: ronald
Revision: 117985

upgpkg: freevo 1.9.0-14

modify python files in prepare() function instead of build()

Modified:
  freevo/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-27 19:45:22 UTC (rev 117984)
+++ PKGBUILD	2014-08-27 20:21:39 UTC (rev 117985)
@@ -3,7 +3,7 @@
 
 pkgname=freevo
 pkgver=1.9.0
-pkgrel=13
+pkgrel=14
 pkgdesc="An open-source home theatre PC platform"
 url="http://freevo.sourceforge.net/"
 license=('GPL2')
@@ -26,7 +26,7 @@
           '57e1099527603500c594fbffa2cb7233b636eed1')
 
 prepare() {
-  cd $pkgname-$pkgver
+  cd "${srcdir}/${pkgname}-${pkgver}"
 
   # patch from http://sourceforge.net/tracker/index.php?func=detail&aid=2924872&group_id=46652&atid=446895
   patch -Np0 -i ../imdb-html5lib.patch
@@ -33,9 +33,16 @@
 
   # remove check for python-imaging
   sed -i "/'Image'/d" setup.py
+
+  # fix executable for python 2.7
+  sed -i -e 's:\(#!/usr/bin/env[ ]\+python$\|#!/usr/bin/python$\):\12:g' \
+        $(find "${srcdir}/${pkgname}-${pkgver}" -regex ".*.py\|.*.recipe")
+  sed -i "s:python:python2:g" "${srcdir}/${pkgname}-${pkgver}"/src/www/htdocs/downloadurl
+  sed -i "s|search = ('python', 'python2')|search = ('python2', 'python2.7')|" "${srcdir}/${pkgname}-${pkgver}"/freevo
 }
+
 package() {
-  cd $pkgname-$pkgver
+  cd "${srcdir}/${pkgname}-${pkgver}"
 
   python2 setup.py install --prefix="${pkgdir}"/usr
 
@@ -48,8 +55,8 @@
         "${pkgdir}"/usr/share/applications/freevo.desktop
 
   # fix executable for python 2.7
-  sed -i -e 's:\(#!/usr/bin/env[ ]\+python$\|#!/usr/bin/python$\):\12:g' \
-        $(find "${pkgdir}" -regex ".*.py\|.*.recipe")
-  sed -i "s:python:python2:g" "${pkgdir}"/usr/share/freevo/htdocs/downloadurl
-  sed -i "s|search = ('python', 'python2')|search = ('python2', 'python2.7')|" "${pkgdir}"/usr/bin/freevo
+#  sed -i -e 's:\(#!/usr/bin/env[ ]\+python$\|#!/usr/bin/python$\):\12:g' \
+#        $(find "${srcdir}/${pkgname}-${pkgver}" -regex ".*.py\|.*.recipe")
+#  sed -i "s:python:python2:g" "${srcdir}/${pkgname}-${pkgver}"/src/www/htdocs/downloadurl
+#  sed -i "s|search = ('python', 'python2')|search = ('python2', 'python2.7')|" "${srcdir}/${pkgname}-${pkgver}"/freevo
 }




More information about the arch-commits mailing list