summaryrefslogtreecommitdiff
path: root/pcr/tupi/PKGBUILD
blob: c82eada67846780651c15735e9d6dfafdd4264de (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
# Maintainer: Márcio Silva <coadde@parabola.nu>

pkgname=tupi
pkgver=0.2.git20140724
pkgcommit=ed31be0cb13892bc6839a58da3d1570e1f49876b # July 24, 2014
pkgrel=1
pkgdesc='Tupí is an 2D animation/drawing software (fork of KToon)'
arch=(
  x86_64
  i686
)
url=http://www.maefloresta.com/portal/
license=GPL2
depends=(
  desktop-file-utils
  ffmpeg
  quazip
  qt5-multimedia
  qt5-svg
  shared-mime-info
  xdg-utils
)
makedepends=(
  git
  qt5-tools
  ruby
)
install=$pkgname.install
source=$pkgname-$pkgver::git+git://anongit.kde.org/tupi#commit=$pkgcommit
sha512sums=SKIP

prepare() {
  cd $pkgname-$pkgver
  # fix /lib directory path
  sed -i 's|/lib64|/lib|' configure.rb qonf/{configure,test}.rb
  # fix qmake path
  sed -i 's|qmake|qmake-qt5|g' configure
  sed -i '\|path| s|qmake|qmake-qt5|
          s|/bin/qmake|/bin/qmake-qt5|
         ' qonf/qmake.rb
  # fix /usr directory path
  sed -i 's|/opt/|/usr/|' qonf/configure.rb
}

build() {
  cd $pkgname-$pkgver
  export QTDIR=/usr
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR=$pkgdir install
}