summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 909bf19383a2199d72be1a2d099ca0b798659f95 (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
# Maintainer:  AppleBloom <rat.o.drat@gmail.com>

pkgname='gimp-plugin-resynthesizer-scm-git'
pkgver='r154.c44500b'
pkgrel='1'
pkgdesc='Suite of gimp plugins for texture synthesis (like heal-selection) - fork that works with GIMP 2 without Python 2 (using script-fu); git version.'
arch=('x86_64')
url='https://github.com/itr-tert/gimp-resynthesizer-scm'
license=('GPL-3.0-only')
depends=('gimp')
makedepends=('git' 'intltool')
provides=('gimp-plugin-resynthesizer-scm')
conflicts=('gimp-plugin-resynthesizer-scm' 'gimp-plugin-resynthesizer')
source=('git+https://github.com/itr-tert/gimp-resynthesizer-scm.git')
md5sums=('SKIP')

pkgver() {
    cd 'gimp-resynthesizer-scm'
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd 'gimp-resynthesizer-scm'
    sed -i 's/--enable-maintainer-mode//g' autogen.sh
}

build() {
    cd 'gimp-resynthesizer-scm'
    ./autogen.sh --disable-maintainer-mode --prefix=/usr
    make
}

package() {
    cd 'gimp-resynthesizer-scm'
    make DESTDIR="$pkgdir/" install
}