blob: 804b1c9fd1b250ef189b18d899bec57b93aca413 (
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
|
# Maintainer: Deon Spengler <deon at spengler dot co dot za>
# Contributor: magiruuvelvet <contact (at) magiruuvelvet (dot) gdn>
# Note: use GCC to compile, clang doesn't work
pkgname=gimp-plugin-resynthesizer
_pkgname=resynthesizer
pkgver=2.0.3
pkgrel=2
pkgdesc="Suite of gimp plugins for texture synthesis"
arch=('x86_64' 'aarch64')
url='https://github.com/bootchk/resynthesizer'
license=('GPL3')
depends=('gimp>=2.8' 'python2-gimp' 'python2-gobject2>=2.28.7-7')
makedepends=('pkg-config' 'intltool')
conflicts=('gimp-plugin-resynthesizer-git')
source=("$pkgname-src-$pkgver.tgz::https://github.com/bootchk/$_pkgname/archive/v$pkgver.tar.gz")
sha256sums=('798678095c34b101c880eb350b31e9a6ff9748707d6ad9063cdee26c38016450')
build() {
cd "$srcdir/$_pkgname-$pkgver"
# make sure GCC is selected during config
export CC=gcc
export CXX=g++
./autogen.sh
./configure --prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--libdir=/usr/lib \
--libexecdir=/usr/lib/gimp-2.0
make prefix=/usr \
bindir=/usr/bin \
sbindir=/usr/bin \
libdir=/usr/lib \
libexecdir=/usr/lib/gimp-2.0 \
DESTDIR="${pkgdir}"
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
make prefix=/usr \
bindir=/usr/bin \
sbindir=/usr/bin \
libdir=/usr/lib \
libexecdir=/usr/lib/gimp-2.0 \
DESTDIR="${pkgdir}" install
# Stupid Makefile, not install things correctly, help?
mkdir -p "$pkgdir/usr/lib/gimp/2.0/plug-ins/"
mv "$pkgdir/usr/bin/"* "$pkgdir/usr/lib/gimp/2.0/plug-ins/"
rmdir "$pkgdir/usr/bin"
}
|