summaryrefslogtreecommitdiff
path: root/extra/cinepaint/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-21 01:12:26 -0700
committerroot <root@rshg054.dnsready.net>2013-04-21 01:12:26 -0700
commit031887a2047546085998f965214f5b682664de9b (patch)
treed093de81eafda62084703e9109f86de6e02f1ad2 /extra/cinepaint/PKGBUILD
parent1f9776d421ac40faa59f797893033e99e4f919eb (diff)
Sun Apr 21 01:12:25 PDT 2013
Diffstat (limited to 'extra/cinepaint/PKGBUILD')
-rw-r--r--extra/cinepaint/PKGBUILD24
1 files changed, 15 insertions, 9 deletions
diff --git a/extra/cinepaint/PKGBUILD b/extra/cinepaint/PKGBUILD
index 9473111c1..c298060dd 100644
--- a/extra/cinepaint/PKGBUILD
+++ b/extra/cinepaint/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 169741 2012-10-27 23:41:34Z eric $
+# $Id: PKGBUILD 183279 2013-04-20 16:41:11Z heftig $
# Maintainer: tobias [tobias.archlinux.org]
# Contributor: tobias [tobias.justdreams.de]
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 @@ sha1sums=('1982e32b0f461f4fd0ff0fe17a2e81ccd8dbd52b'
'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 @@ build() {
}
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"