summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..dc10569dd317
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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 '{}' \;
+}