summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdad7ae4c192b2fde8d316846dd1d851feae282f (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
# Maintainer: cyrant <cyrant at tuta dot io>

pkgname=opentoonz
pkgver=1.2.0
pkgrel=1
pkgdesc='2D animation software based on Toonz Studio Ghibli Version.'
url='https://opentoonz.github.io'
license=('BSD')
arch=('x86_64')
conflicts=('opentoonz-git')
depends=('cblas' 'freeglut' 'glew' 'libmypaint' 'lzo' 'qt5-multimedia' 'qt5-script' 'sdl2' 'superlu')
makedepends=('boost' 'boost-libs' 'cmake' 'git' 'qt5-tools')
source=(
  "git+https://github.com/opentoonz/opentoonz.git#tag=v${pkgver}"
  "${pkgname}.desktop"
  "${pkgname}.png"
)
md5sums=(
  'SKIP'
  '79edaacc7ef2f7b932a2ab3e9234570e'
  '3d8620258a66ee0f58c91ea6a38e33c1'
)

build() {
  cd "${pkgname}/thirdparty/tiff-4.0.3"
  ./configure --with-pic --disable-jbig && make
  cd -

  cmake \
    -H"${pkgname}/toonz/sources" \
    -B"${pkgname}-build" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DMYPAINT_LIB_INCLUDE_DIRS=/usr/include/libmypaint \
    -DMYPAINT_LIB_LDFLAGS=/usr/lib/libmypaint-1.3.so
  cd "${pkgname}-build"
  make
}

package() {
  cd "${pkgname}-build"
  make DESTDIR="${pkgdir}/" install
  cd -

  install -Dm644 "${pkgname}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  install -Dm644 "${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
}