blob: 9c08d659967bbe84dfcecc0cbe8b77dc5747f7ac (
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
|
# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
_openfx_gmic_commit=6c878e1
_openfx_commit=5d9ac2c
pkgname=openfx-gmic
pkgver=2.3.15_pre5
pkgrel=1
arch=("i686" "pentium4" "x86_64")
pkgdesc="OpenFX wrapper for the G'MIC framework"
url="https://github.com/NatronGitHub/openfx-gmic"
license=('custom:CeCILL-C' 'custom:CeCILLv2')
depends=("curl" "fftw" "libgl" "libpng")
makedepends=("gimp" "opencv" "openexr" "qt5-base")
source=("openfx-gmic_$_openfx_gmic_commit.tar.gz::https://github.com/NatronGitHub/openfx-gmic/tarball/$_openfx_gmic_commit"
"openfx_$_openfx_commit.tar.gz::https://github.com/NatronGitHub/openfx/tarball/$_openfx_commit")
sha512sums=('SKIP'
'SKIP')
_pkgname="NatronGitHub-$pkgname-$_openfx_gmic_commit"
# Checks whether the environment is 32-bit or 64-bit
if [ $CARCH == 'x86_64' ]
then
_BITS=64
else
_BITS=32
fi
prepare() {
tar -xzf "$srcdir/openfx_$_openfx_commit.tar.gz" --strip 1 \
-C "$srcdir/$_pkgname/openfx/"
}
build() {
cd "$srcdir/$_pkgname"
make CONFIG=release \
BITS=$_BITS
}
package() {
cd "$srcdir/$_pkgname"
install -d "$pkgdir/usr/OFX/Plugins"
make install PLUGINPATH=$pkgdir/usr/OFX/Plugins \
CONFIG=release \
BITS=$_BITS
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 $srcdir/$_pkgname/COPYING "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 $srcdir/$_pkgname/Licence_CeCILL-C_V1-en.txt "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 $srcdir/$_pkgname/Licence_CeCILL_V2-en.txt "$pkgdir/usr/share/licenses/$pkgname/"
}
|