summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc10569dd3174349c48abdb744184e103863da4b (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
55
# Maintainer: Steven Honeyman <stevenhoneyman at gmail com>

pkgname=gimp-light
pkgver=2.8.10
pkgrel=4
pkgdesc="A trimmed down install of the GNU Image Manipulation Program"
arch=('i686' 'x86_64')
url="http://www.gimp.org/"
license=('GPL')
depends=('gtk2' 'babl' 'gegl' 'libexif' 'libxpm' 'libjpeg' 'libpng')
makedepends=('pkgconfig' 'intltool')
provides=(gimp)
conflicts=('gimp-devel' 'gimp')
options=(strip !docs !libtool !staticlibs emptydirs)
source=(http://download.gimp.org/pub/gimp/v${pkgver%.*}/gimp-${pkgver}.tar.bz2
        gimp-2.8.10-freetype.patch
	gimp-2.8.10-device_info.patch
	sessionrc
	)
md5sums=('84c964aab7044489af69f7319bb59b47'
         '1697c634d69cb77f75f6db84f49222d6'
         '39737fc47ee4556740790e9d3a243bf1'
         '37996178b9a5854b89db6d518cfd23fc')

prepare() {
	cd "$srcdir/gimp-$pkgver"
	patch -p1 -i "$srcdir/gimp-2.8.10-freetype.patch"
	patch -p1 -i "$srcdir/gimp-2.8.10-device_info.patch"
}

build() {
	cd "$srcdir/gimp-$pkgver"
	ALL_LINGUAS="en en_GB" ./configure --prefix=/usr --sysconfdir=/etc \
		--enable-shared --disable-debug --disable-python \
		--disable-gimp-console --without-aa --without-libxpm \
		--without-libmng --without-wmf --without-webkit \
		--without-poppler --without-gvfs --without-lcms \
		--without-alsa --without-libcurl --without-dbus \
		--without-linux-input --without-mac-twain --without-xmc
	make
}

package() {
	cd "$srcdir/gimp-$pkgver"
	make DESTDIR="$pkgdir" install-strip
	sed -i 's/# (theme "Default")/(theme "Small")/' $pkgdir/etc/gimp/2.0/gimprc
	sed -i 's/# (save-document-history yes)/(save-document-history no)/' $pkgdir/etc/gimp/2.0/gimprc
	install -D -m644 $srcdir/sessionrc $pkgdir/etc/gimp/2.0/sessionrc
	rm $pkgdir/usr/bin/gimptool-2.0
	rm $pkgdir/usr/share/locale/en_GB/LC_MESSAGES/gimp20-{python,tips}.mo
	rm -r $pkgdir/usr/include $pkgdir/usr/lib/gimp/2.0/{environ,interpreters,modules} 
	rm -r $pkgdir/usr/share/{aclocal,appdata,gtk-doc,man} 
	rm -r $pkgdir/usr/share/icons/hicolor/256x256 $pkgdir/usr/share/gimp/2.0/tips
	find $pkgdir/usr/share/locale -mindepth 1 -maxdepth 1 ! -name "en_GB" -exec rm -r '{}' \;
}