Date: Wednesday, April 21, 2021 @ 00:27:47 Author: bgyorgy Revision: 920447
archrelease: copy trunk to community-staging-x86_64 Added: opentoonz/repos/community-staging-x86_64/ opentoonz/repos/community-staging-x86_64/PKGBUILD (from rev 920446, opentoonz/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: opentoonz/repos/community-staging-x86_64/PKGBUILD (from rev 920446, opentoonz/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-04-21 00:27:47 UTC (rev 920447) @@ -0,0 +1,40 @@ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> +# Contributor: cyrant <cyrant at tuta dot io> + +pkgname=opentoonz +pkgver=1.5.0 +pkgrel=2 +pkgdesc='Software for producing a 2D animation' +arch=('x86_64') +url='https://opentoonz.github.io/e/' +license=('BSD') +depends=('cblas' 'ffmpeg' 'freeglut' 'glew' 'libmypaint' 'opencv' 'qt5-multimedia' 'qt5-script' + 'qt5-serialport' 'qt5-svg' 'superlu') +makedepends=('boost' 'cmake' 'ninja' 'qt5-tools') +source=("https://github.com/opentoonz/$pkgname/archive/v${pkgver}/$pkgname-$pkgver.tar.gz") +sha256sums=('fba0f381fb71ffda89e6423b4d461450d4851f93830342e69e36313070af5990') + +prepare() { + cd $pkgname-$pkgver + + # Specify path for ffmpeg + sed -i 's|"ffmpegPath", QMetaType::QString, ""|"ffmpegPath", QMetaType::QString, "/usr/bin"|' \ + toonz/sources/toonzlib/preferences.cpp +} + +build() { + pushd $pkgname-$pkgver/thirdparty/tiff-4.0.3 + ./configure --with-pic --disable-jbig + make + popd + + cmake -S $pkgname-$pkgver/toonz/sources -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_SKIP_RPATH=YES + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + install -Dm644 $pkgname-$pkgver/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" +}