blob: b3b22e585fd0b5dfb74b46a21595330d111c56a5 (
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
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Arthus Belliqueux <contact@arthus.net>
# Contributor: Campbell Barton <ideasman42@gmail.com>
export GIT_LFS_SKIP_SMUDGE=1
export GIT_CLONE_PROTECTION_ACTIVE=false
pkgname=tahoma2d
pkgver=1.5
pkgrel=1
pkgdesc="Software for producing a 2D animation"
arch=(x86_64)
url="https://tahoma2d.org/"
license=(BSD)
depends=(cblas cblas ffmpeg freeglut glew hicolor-icon-theme libmypaint qt5-multimedia qt5-script qt5-svg qt5-serialport superlu opencv)
makedepends=(git git-lfs boost cmake qt5-tools)
source=("git+https://github.com/tahoma2d/tahoma2d.git#tag=v${pkgver}"
0001-cmake-fix.patch)
sha256sums=('c0171274d15617c487850698554a96bce35a5e977b1260231b28c90fafa87eff'
'238d8e73554cc6751bbcb50ba054f3a335b767277cfbf36adae4c8bb73c6a10b')
prepare() {
[[ -d build ]] || mkdir build
cd tahoma2d
# Specify path for ffmpeg
#sed -i 's|"ffmpegPath", QMetaType::QString, ""|"ffmpegPath", QMetaType::QString, "/usr/bin"|' toonz/sources/toonzlib/preferences.cpp
# https://github.com/tahoma2d/tahoma2d/issues/1600#issuecomment-2408657568
patch -Np1 -i ../0001-cmake-fix.patch
}
build() {
pushd "tahoma2d/thirdparty/tiff-4.2.0"
./configure --with-pic --disable-jbig --disable-webp
make
popd
# substitute binaries names to be non-conflicting with opentoonz https://github.com/tahoma2d/tahoma2d/issues/1032
sed -i 's/(tcleanup/(tdcleanup/g' tahoma2d/toonz/sources/tcleanupper/CMakeLists.txt
sed -i 's/(tcomposer/(tdcomposer/g' tahoma2d/toonz/sources/tcomposer/CMakeLists.txt
sed -i 's/(tconverter/(tdconverter/g' tahoma2d/toonz/sources/tconverter/CMakeLists.txt
sed -i 's/(tfarmcontroller/(tdfarmcontroller/g' tahoma2d/toonz/sources/toonzfarm/tfarmcontroller/CMakeLists.txt
sed -i 's/(tfarmserver/(tdfarmserver/g' tahoma2d/toonz/sources/toonzfarm/tfarmserver/CMakeLists.txt
sed -i 's/(lzocompress/(tdlzocompress/g' tahoma2d/thirdparty/lzo/driver/CMakeLists.txt
sed -i 's/(lzodecompress/(tdlzodecompress/g' tahoma2d/thirdparty/lzo/driver/CMakeLists.txt
sed -i 's/TARGET_FILE:tcleanup/TARGET_FILE:tdcleanup/g; s/TARGET_FILE:tcomposer/TARGET_FILE:tdcomposer/g; s/TARGET_FILE:tconverter/TARGET_FILE:tdconverter/g; s/TARGET_FILE:tfarmcontroller/TARGET_FILE:tdfarmcontroller/g; s/TARGET_FILE:tfarmserver/TARGET_FILE:tdfarmserver/g; s/TARGET_FILE:lzocompress/TARGET_FILE:tdlzocompress/g; s/TARGET_FILE:lzodecompress/TARGET_FILE:tdlzodecompress/g' tahoma2d/toonz/sources/toonz/CMakeLists.txt
cd build
cmake -G "Unix Makefiles" ../tahoma2d/toonz/sources -Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=YES \
-DWITH_TRANSLATION=OFF
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
install -Dm644 ../tahoma2d/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
|