Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fixed PKGBUILD for opentoonz to build from release tag source archive instead of git checkout
# Maintainer: cyrant <cyrant at tuta dot io>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
pkgname=opentoonz
pkgver=1.3.0
pkgrel=4
pkgdesc='This is a 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' 'qt5-tools')
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/opentoonz/opentoonz/archive/v${pkgver}.tar.gz"
"${pkgname}-build.patch::https://github.com/opentoonz/opentoonz/commit/adae1528d6f580d56b5499c97b30acfb84af4390.patch"
)
sha256sums=('a5dd0286a58017a086a3533016b9b4f54ada25a230c62de63b995bc04d0cd5a8'
'9b8b4a68d3af0941ed83e655b68cf25037fedff24a53e3ae224b7f56337ab6f2')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -N -r - -i "${srcdir}/${pkgname}-build.patch"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
( cd thirdparty/tiff-4.0.3; ./configure --with-pic --disable-jbig && make; )
mkdir -p build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMYPAINT_LIB_INCLUDE_DIRS=/usr/include/libmypaint \
-DMYPAINT_LIB_LDFLAGS=/usr/lib/libmypaint.so \
../toonz/sources
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm644 "LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
cd build
make DESTDIR="${pkgdir}/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.