summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCampbell Barton2016-07-03 19:36:40 +1000
committerCampbell Barton2016-07-03 19:38:18 +1000
commitc98afec3591e9f9c92b2209a1ff9624806ffd84f (patch)
tree7ac6680478e59e98b12d291e969094330ab31a17
downloadaur-c98afec3591e9f9c92b2209a1ff9624806ffd84f.tar.gz
Initial opentoonz package
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD56
2 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..bfcf2e418ee5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = opentoonz-git
+ pkgdesc = 2D Animation software.
+ pkgver = 1.0.3
+ pkgrel = 1
+ url = https://github.com/opentoonz/opentoonz
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = cmake
+ makedepends = make
+ makedepends = git
+ depends = boost
+ depends = boost-libs
+ depends = qt5-base
+ depends = qt5-svg
+ depends = qt5-script
+ depends = qt5-tools
+ depends = lz4
+ depends = libusb
+ depends = lzo
+ depends = libjpeg-turbo
+ depends = glew
+ depends = freeglut
+ depends = sdl2
+ depends = freetype2
+ depends = blas
+ depends = cblas
+ source = git+https://github.com/opentoonz/opentoonz.git
+ md5sums = SKIP
+
+pkgname = opentoonz-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a5dbd7601fdd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Campbell Barton <ideasman42@gmail.com>
+
+_pkgname=opentoonz
+_version=git
+
+pkgname=${_pkgname}-${_version}
+# todo, extract from ./toonz/sources/toonz/main.cpp, applicationFullName
+pkgver=1.0.3
+pkgrel=1
+pkgdesc="2D Animation software."
+arch=('i686' 'x86_64')
+url="https://github.com/${_pkgname}/${_pkgname}"
+license=('BSD')
+groups=()
+depends=(
+ 'boost' 'boost-libs'
+ 'qt5-base' 'qt5-svg' 'qt5-script' 'qt5-tools'
+ 'lz4' 'libusb' 'lzo' 'libjpeg-turbo'
+ 'glew' 'freeglut' 'sdl2' 'freetype2'
+ 'blas' 'cblas')
+makedepends=('cmake' 'make' 'git')
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("git+${url}.git"
+)
+noextract=()
+md5sums=(
+'SKIP'
+) #autofill using updpkgsums
+
+build() {
+ # make libtiff
+ cd $_pkgname/thirdparty/tiff-4.0.3
+ CFLAGS="-fPIC" ./configure && make $MAKEFLAGS
+ cd -
+
+ cmake -H$_pkgname/toonz/sources \
+ -B$_pkgname-build \
+ -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DCMAKE_INSTALL_PREFIX:PATH=/opt/opentoonz
+
+ # Currently only single threaded builds working
+ cd $_pkgname-build
+ make $MAKEFLAGS -j 1
+}
+
+package() {
+ cd $_pkgname-build
+ make DESTDIR="$pkgdir/" install
+}