summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00707bd17bccbc4ebea834a22b6ddaae63835a5b (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
56
57
58
59
60
61
62
63
64
65
66
_name=gimp
pkgname=${_name}-stripped
pkgver=2.10.34
pkgrel=1
pkgdesc='GNU Image Manipulation Program (stripped from most unnecessary dependencies)'
url='https://www.gimp.org/'
arch=('x86_64')
license=('GPL' 'LGPL')
conflicts=("${_name}")
provides=("${_name}")
depends=('gtk2' 'babl' 'gegl' 'glib-networking' 'mypaint-brushes1' 'poppler-glib' 'poppler-data' 'libgexiv2')
makedepends=('intltool' 'iso-codes')
options=('!emptydirs' '!docs')

_snapshot="${_name}-${pkgver}"
source=("https://download.gimp.org/pub/gimp/v${pkgver%.*}/${_snapshot}.tar.bz2")
sha256sums=('84004642d351b398a4293cd7fd3592044a944f05bb52850ee6068f247c657aa3')

build() {
    cd "${_snapshot}"

    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --libexecdir=/usr/bin \
        --enable-mp \
        --disable-alsatest \
        --disable-check-update \
        --disable-dependency-tracking \
        --disable-gimp-console \
        --disable-glibtest \
        --disable-gtk-doc \
        --disable-gtktest \
        --disable-maintainer-mode \
        --disable-python \
        --without-aa \
        --without-alsa \
        --without-appdata-test \
        --without-cairo-pdf \
        --without-gs \
        --without-gudev \
        --without-jpeg2000 \
        --without-libbacktrace \
        --without-libheif \
        --without-libmng \
        --without-libtiff \
        --without-libunwind \
        --without-libxpm \
        --without-linux-input \
        --without-openexr \
        --without-print \
        --without-webkit \
        --without-webp \
        --without-wmf \
        --without-xmc \
        --without-xvfb-run

    make
}

package() {
    cd "${_snapshot}"
    make DESTDIR="${pkgdir}" install
    rm -r "${pkgdir}/usr/share/man"
    ln -s "gimptool-2.0" "${pkgdir}/usr/bin/gimptool"
}