summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64bc0dd5997c42506f0833edbbd4dc9a6db58723 (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
# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab

pkgname=svg2sif-git
pkgver=20130226
pkgrel=1
pkgdesc='An Inkscape extension that converts SVG files to Synfig Animation Studio (.sif) files.'
arch=(any)
url='https://github.com/nikitakit/svg2sif'
license=('GPL')
groups=()
depends=(inkscape python)
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
noextract=()
_gitroot='git://github.com/nikitakit/svg2sif.git'
_gitname='svg2sif'
build(){
  cd "$srcdir"
  msg2 "Connecting to GIT server...."

  if [ -d ${_gitname}/.git ] ; then
    cd $_gitname
    git pull origin
    msg2 "The local files are updated."
  else
    git clone $_gitroot $_gitname
    cd $_gitname
  fi

  msg2 "GIT checkout done or server timeout"
}
package(){
  cd "$srcdir"/$_gitname
  msg2 "Starting install"
  install -dm755 "$pkgdir"/usr/share/inkscape/extensions
  cp -r *.py *.inx "$pkgdir"/usr/share/inkscape/extensions
}