blob: aa9a6ab012486e4734abf19e55f7738ef29bd10c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $Id: PKGBUILD 213128 2014-05-19 14:15:58Z svenstaro $
# Maintainer:
# Contributor: tobias [tobias.archlinux.org]
pkgname=cinepaint
_realver=1.0-4
pkgver=${_realver/-/.}
pkgrel=2
epoch=1
pkgdesc="Sophisticated graphics manipulation programm supporting > 8bit pictures"
arch=('i686' 'x86_64')
license=('LGPL' 'GPL' 'MIT')
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'
'gutenprint: for print plug-ins'
'ghostscript: for pdf plug-ins')
install=cinepaint.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$_realver.tar.gz
LICENSE cinepaint-libpng15.patch)
sha1sums=('2049958784d211cc0be8f41f3473433479ba71fe'
'ca8411db87f3fc51bbdfade22f4e1f555b2ee19e'
'3dfc9f06f02791aee59b60d33ddf9d305b0f1de5')
prepare() {
cd $pkgname-$_realver
patch -p1 -i ../cinepaint-libpng15.patch
find . -name \*.png -exec optipng -quiet -force -fix {} +
}
build() {
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
find . -name Makefile -exec sed -i 's/-Wl,,/-Wl,/g' {} +
make
}
package() {
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"
}
|