# Maintainer: Jorge Araya Navarro <elcorreo@deshackra.com>

pkgname=aseprite
pkgver=1.1.5.6
pkgrel=4
pkgdesc='Create animated sprites and pixel art'
arch=('x86_64' 'i686')
url='http://www.aseprite.org/'
license=('GPL')
source=("git+https://github.com/aseprite/aseprite.git#tag=v${pkgver}"
        aseprite.desktop)
makedepends=('git')
sha256sums=('SKIP'
            'c9e624b9fd095ebb3eec8220a58d4a9422f39d68477bafcc0047d773814ba0aa')

build() {
  cd ${srcdir}/${pkgname}

  export PKGEXT=.src.tar.xz
  
  # get submodules to have the entire source code 
  git submodule update --init third_party/duktape
  git submodule update --init third_party/gtest
  git submodule update --init third_party/simpleini
  git submodule update --init third_party/pixman
  git submodule update --init src/clip
  git submodule update --init src/flic
}

package() {
  cd ${srcdir}
  export PKGEXT=.src.tar.xz
  export PKGDEST=${startdir}

  mv ${pkgname} ${pkgdir}/

}

# vim:set ts=2 sw=2 et: