blob: 5e0ad7502913b323bfcea765a065e56dcfcab015 (
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
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
# Contributor: ValHue <vhuelamo at gmail dot com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Daniel Isenmann <daniel@archlinux.org>
pkgname="python2-gimp"
_pkgname="gimp"
pkgver="2.10.38"
pkgrel="2"
pkgdesc='Python 2 plugins support for GIMP'
url='https://www.gimp.org/'
arch=('x86_64')
license=('GPL-3.0-only AND LGPL-3.0-only')
depends=('gimp<2.99' 'pygtk')
makedepends=('gtk-doc' 'intltool' 'autoconf' 'glib2-devel')
source=("https://download.gimp.org/pub/gimp/v${pkgver%.*}/${_pkgname}-${pkgver}.tar.bz2")
sha512sums=('343bf1c3bd14bf8e7c7af79c05920faca213da68549127c1d8af53e2e872e55aeaf39a3cfcf578183a34fdc4f98e1c859be63956b0611067186eefd1fdee2aaa')
prepare() {
cd ${_pkgname}-${pkgver}
sed -i 's/^libgimpui = .*/ libgimpui = -lgimpui-2.0/
s/^libgimpconfig = .*/ libgimpconfig = -lgimpconfig-2.0/
s/^libgimpwidgets = .*/ libgimpwidgets = -lgimpwidgets-2.0/
s/^libgimp = .*/ libgimp = -lgimp-2.0/
s/^libgimpcolor = .*/ libgimpcolor = -lgimpcolor-2.0/
s/^libgimpbase = .*/ libgimpbase = -lgimpbase-2.0/
s/^libgimpmath = .*/ libgimpmath = -lgimpmath-2.0/
s/^libgimpthumb = .*/ libgimpthumb = -lgimpthumb-2.0/' plug-ins/pygimp/Makefile.am
autoreconf -fi
}
build() {
cd ${_pkgname}-${pkgver}
PYTHON=/usr/bin/python2 ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/bin \
--enable-python \
--without-aa
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make -C plug-ins/pygimp
}
package() {
cd ${_pkgname}-${pkgver}
make -C plug-ins/pygimp DESTDIR="${pkgdir}" install
}
|