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

Eric Bélanger eric at nymeria.archlinux.org
Wed Apr 17 00:37:30 UTC 2013


    Date: Wednesday, April 17, 2013 @ 02:37:30
  Author: eric
Revision: 183037

upgpkg: cinepaint 1.3-6

Rebuild against openexr 2.0.0, Add prepare function, Add build fixes

Modified:
  cinepaint/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-16 23:51:26 UTC (rev 183036)
+++ PKGBUILD	2013-04-17 00:37:30 UTC (rev 183037)
@@ -4,7 +4,7 @@
 
 pkgname=cinepaint
 pkgver=1.3
-pkgrel=5
+pkgrel=6
 pkgdesc="Sophisticated graphics manipulation programm supporting > 8bit pictures"
 arch=('i686' 'x86_64')
 license=('LGPL' 'GPL' 'MIT')
@@ -23,18 +23,24 @@
           '3dfc9f06f02791aee59b60d33ddf9d305b0f1de5'
           'a4f43aabdbb33d059f1a38442cd6625e4f00c5b9')
 
-build() {
-  cd "${srcdir}/${pkgname}"
+prepare() {
+  cd ${pkgname}
   patch -p1 -i ../cinepaint-libpng15.patch
   patch -p1 -i ../cinepaint-missing-include.patch
   find plug-ins/pygimp -type f -exec sed -i 's#env python#env python2#' {} +
   sed -i 's|$(LDFLAGS) -o|$(LDFLAGS) $(GTK_LIBS) -o|' lib/Makefile.in
+  sed -i -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|' \
+    -e 's|AM_PROG_CC_STDC|AC_PROG_CC|' configure.in
 
-#  aclocal -I aclocal
-#  autoconf
+  aclocal -I aclocal
+  autoconf
   sh autogen.sh
-  
-  LIBS+="-lstdc++ -lm -lX11" ./configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man \
+}
+
+build() {
+  cd ${pkgname}
+  LIBS+="-lstdc++ -lm -lX11" PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
+    --libdir=/usr/lib --mandir=/usr/share/man \
     --enable-gtk2 --enable-pygimp --with-python=/usr/bin/python2
   sed -i 's/-Wl,,/-Wl,/' lib/fl_i18n/Makefile plug-ins/bracketing_to_hdr/Makefile \
     plug-ins/collect/Makefile plug-ins/icc_examin/icc_examin/Makefile plug-ins/pdf/Makefile
@@ -42,7 +48,7 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}"
+  cd ${pkgname}
   make DESTDIR="${pkgdir}" install
   sed -i -e "s|-I$srcdir/cinepaint||" -e "s|-I$srcdir/cinepaint/lib||" -e "/libcinepaint.la/d" \
     -e "s|$srcdir/cinepaint/lib/.libs/\$dlname||" "${pkgdir}/usr/bin/cinepainttool"




More information about the arch-commits mailing list