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

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Sun Mar 9 19:53:29 UTC 2014


    Date: Sunday, March 9, 2014 @ 20:53:29
  Author: bpiotrowski
Revision: 207453

upgpkg: cinepaint 1:1.0.4-1

new upstream release

Modified:
  cinepaint/trunk/PKGBUILD

----------+
 PKGBUILD |   62 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 28 insertions(+), 34 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-09 16:43:05 UTC (rev 207452)
+++ PKGBUILD	2014-03-09 19:53:29 UTC (rev 207453)
@@ -1,10 +1,12 @@
 # $Id$
-# Maintainer: tobias [tobias.archlinux.org]
-# Contributor: tobias [tobias.justdreams.de]
+# Maintainer:
+# Contributor: tobias [tobias.archlinux.org]
 
 pkgname=cinepaint
-pkgver=1.3
-pkgrel=9
+_realver=1.0-4
+pkgver=${_realver/-/.}
+pkgrel=1
+epoch=1
 pkgdesc="Sophisticated graphics manipulation programm supporting > 8bit pictures"
 arch=('i686' 'x86_64')
 license=('LGPL' 'GPL' 'MIT')
@@ -11,50 +13,42 @@
 url="http://www.cinepaint.org"
 depends=('gtk2' 'openexr' 'lcms' 'libxpm' 'fltk' 'ftgl' 'libxxf86vm')
 makedepends=('python2' 'gutenprint>=5.2.9' 'optipng')
-optdepends=('python2: for python plug-ins' 
+optdepends=('python2: for python plug-ins'
             'gutenprint: for print plug-ins'
             'ghostscript: for pdf plug-ins')
 install=cinepaint.install
-source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tgz
-        LICENSE cinepaint-libpng15.patch cinepaint-missing-include.patch)
-sha1sums=('1982e32b0f461f4fd0ff0fe17a2e81ccd8dbd52b'
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$_realver.tar.gz
+        LICENSE cinepaint-libpng15.patch)
+sha1sums=('2049958784d211cc0be8f41f3473433479ba71fe'
           'ca8411db87f3fc51bbdfade22f4e1f555b2ee19e'
-          '3dfc9f06f02791aee59b60d33ddf9d305b0f1de5'
-          'a4f43aabdbb33d059f1a38442cd6625e4f00c5b9')
+          '3dfc9f06f02791aee59b60d33ddf9d305b0f1de5')
 
 prepare() {
-  cd ${pkgname}
+  cd $pkgname-$_realver
   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
-  sh autogen.sh
-
-  # Fix invalid PNG icons to work with libpng 1.6
-  # Notified the CinePaint Project Manager (Robin Rowe) via email
-  find -name '*.png' -exec optipng -quiet -force -fix {} +
+  find . -name \*.png -exec optipng -quiet -force -fix {} +
 }
 
 build() {
-  cd ${pkgname}
-  LIBS+="-lstdc++ -lm -lX11" PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
+  export LDFLAGS="$LDFLAGS -lstdc++ -lm -lX11"
+
+  cd $pkgname-$_realver
+  ./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
+
+  find . -name Makefile -exec sed -i 's/-Wl,,/-Wl,/g' {} +
+
   make
 }
 
 package() {
-  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"
-  sed -i "s/cinepaint.png/cinepaint/" "${pkgdir}/usr/share/applications/cinepaint.desktop"
-  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  cd $pkgname-$_realver
+  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"
+  sed -i "s/cinepaint.png/cinepaint/" "$pkgdir/usr/share/applications/cinepaint.desktop"
+  install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }




More information about the arch-commits mailing list