blob: 092b9b296e5006567b0a9270e7aa500ccd569a68 (
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
|
# Maintainer: cyrant <cyrant at tuta dot io>
pkgname=opentoonz
pkgver=1.3.0
pkgrel=2
pkgdesc='This is software for producing a 2D animation.'
url='https://opentoonz.github.io'
license=('BSD')
arch=('x86_64')
conflicts=('opentoonz-git')
depends=('cblas' 'freeglut' 'glew' 'hicolor-icon-theme' 'libmypaint' 'qt5-multimedia' 'qt5-script' 'qt5-svg' 'sdl2' 'superlu')
makedepends=('boost' 'boost-libs' 'cmake' 'git' 'pkgconf' 'qt5-tools')
source=(
"git+https://github.com/opentoonz/opentoonz.git#tag=v${pkgver}"
"${pkgname}-build.patch::https://github.com/opentoonz/opentoonz/commit/adae1528d6f580d56b5499c97b30acfb84af4390.patch"
)
sha256sums=(
'SKIP'
'9b8b4a68d3af0941ed83e655b68cf25037fedff24a53e3ae224b7f56337ab6f2'
)
prepare() {
cd "${pkgname}"
git apply "${srcdir}/${pkgname}-build.patch"
}
build() {
cd "${srcdir}/${pkgname}/thirdparty/tiff-4.0.3/"
./configure --with-pic --disable-jbig && make
cd "${srcdir}/"
cmake \
-H"${pkgname}/toonz/sources" \
-B"${pkgname}-build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMYPAINT_LIB_INCLUDE_DIRS=/usr/include/libmypaint-1.3 \
-DMYPAINT_LIB_LDFLAGS=/usr/lib/libmypaint-1.3.so
cd "${srcdir}/${pkgname}-build/"
make
}
package() {
cd "${srcdir}/${pkgname}-build/"
make DESTDIR="${pkgdir}/" install
cd "${srcdir}/${pkgname}/"
install -Dm644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|