[arch-commits] Commit in cinepaint/trunk (PKGBUILD)
Rémy Oudompheng
remy at archlinux.org
Sat Sep 4 14:16:02 UTC 2010
Date: Saturday, September 4, 2010 @ 10:16:02
Author: remy
Revision: 89858
upgpkg: cinepaint 0.22.1-7
Rebuild for python 2.7
Modified:
cinepaint/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-09-04 14:12:16 UTC (rev 89857)
+++ PKGBUILD 2010-09-04 14:16:02 UTC (rev 89858)
@@ -5,14 +5,14 @@
pkgname=cinepaint
_srcver=0.22-1
pkgver=${_srcver/-/.}
-pkgrel=6
+pkgrel=7
pkgdesc="sophisticated graphics manipulation programm supporting >8bit pictures"
arch=(i686 x86_64)
license=('LGPL' 'GPL' 'MIT-OSI')
url=(http://cinepaint.org.sourceforge.net/)
depends=('gtk2>=2.18.6' 'openexr>=1.6.1' 'lcms>=1.18' 'libxmu>=1.0.4' 'libxpm>=3.5.7' 'fltk>=1.1.9' 'desktop-file-utils' 'ftgl>=2.1.3rc5' 'libjpeg>=8')
-makedepends=('python>=2.6' 'gutenprint>=5.2.3')
-optdepends=('python' 'gutenprint')
+makedepends=('python2' 'gutenprint>=5.2.3')
+optdepends=('python2' 'gutenprint')
options=('!libtool')
install=cinepaint.install
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_srcver}.tar.gz
@@ -31,6 +31,7 @@
patch -Np1 -i "${srcdir}/cinepaint-0.22-gcc44.patch" || return 1
patch -Np1 -i "${srcdir}/cinepaint-0.22.1-multiple_parameters_named.patch" || return 1
patch -Np0 -i "${srcdir}/cinepaint-0.22.1-ambiguousawake.patch" || return 1
+ find plug-ins/pygimp -type f -exec sed -i 's#env python#env python2#' {} +
find plug-ins/print -type f -exec \
sed -i "s:gutenprintui/gutenprintui:gutenprintui2/gutenprintui:" {} \;
# Fix insecure rpath
@@ -39,10 +40,13 @@
# build
./configure --prefix=/usr --mandir=/usr/share/man \
--enable-gtk2 --enable-pygimp \
- --with-python=/usr/bin/python2.6
+ --with-python=/usr/bin/python2
# FIXES
sed -i 's/^\(X_LIBS.*\)$/\1 -lpthread/' plug-ins/openexr/Makefile
- make || return 1
+ make
+}
+package() {
+ cd "${srcdir}/${pkgname}-${_srcver}"
make DESTDIR="${pkgdir}" install || return 1
install -m755 -d "${pkgdir}/usr/share/applications"
install -m755 -d "${pkgdir}/usr/share/pixmaps"
More information about the arch-commits
mailing list