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

Eric Bélanger eric at nymeria.archlinux.org
Fri Aug 23 03:01:56 UTC 2013


    Date: Friday, August 23, 2013 @ 05:01:56
  Author: eric
Revision: 96263

upgpkg: cherrytree 0.30.0-1

Upstream update, Add python2-pyenchant depends, Add prepare function

Modified:
  cherrytree/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-08-23 02:31:55 UTC (rev 96262)
+++ PKGBUILD	2013-08-23 03:01:56 UTC (rev 96263)
@@ -5,28 +5,26 @@
 # Contributor: Tomas A. Schertel <tschertel at gmail.com>
 
 pkgname=cherrytree
-pkgver=0.29.4
+pkgver=0.30.0
 pkgrel=1
 pkgdesc='Hierarchical note taking application featuring rich text and syntax highlighting'
 arch=('any')
 url='http://www.giuspen.com/cherrytree/'
 license=('GPL')
-depends=('pygtksourceview2' 'hicolor-icon-theme' 'desktop-file-utils')
+depends=('pygtksourceview2' 'python2-pyenchant' 'hicolor-icon-theme' 'desktop-file-utils')
 install=$pkgname.install
 source=(http://www.giuspen.com/software/$pkgname-$pkgver.tar.xz)
-sha256sums=('464ed343bf210930724f40feec88d370789d048ed90ad8a76b8eee397aaca0eb')
+sha256sums=('b2280322f006e6cc1269a78d8041298b655a422a39671cb417e5faaebf8bda12')
 
-build() {
-	cd $srcdir/$pkgname-$pkgver
-
-	# python2 fix
-	for file in $(find . -name '*.py') cherrytree; do
- 		echo "Applying python2 fix for ${file}"
- 		sed -i 's_/usr/bin/env python_/usr/bin/env python2_' ${file}
- 	done
+prepare() {
+  cd $pkgname-$pkgver
+  # python2 fix
+  for file in $(find . -name '*.py') cherrytree; do
+    sed -i 's_/usr/bin/env python_/usr/bin/env python2_' ${file}
+  done
 }
 	
 package() {
-	cd $srcdir/$pkgname-$pkgver
-  	python2 setup.py install --root=$pkgdir/ --optimize=1
+  cd $pkgname-$pkgver
+  python2 setup.py install --root="$pkgdir/" --optimize=1
 }




More information about the arch-commits mailing list