# Maintainer (Arch): Jonathan Frawley <jonathanfrawley@gmail.com>
# Maintainer: Márcio Silva <coadde@parabola.nu>
pkgname=xcftools
pkgver=1.0.7
pkgrel=2
pkgdesc="Miscellaneous command line tools for use with the open ${pkgname::3} format used by The GIMP."
url=http://henning.makholm.net/software
arch=(
  i686
  x86_64
  mips64el
)
license=(
  GPL2
  perl
)
depends=(
  libpng
  perl
)
optdepends=gimp
makedepends=libpng
source=(
  http://henning.makholm.net/$pkgname/$pkgname-$pkgver.tar.gz
  $pkgname.patch
)
md5sums=(
  fd960b6470fb23520fc4b1ade6cf6e25
  7439f6a8369a12913243ded6c93d31e1
)

build() {
    cd $srcdir/$pkgname-$pkgver
    patch -i ../$pkgname.patch
    /bin/bash configure --prefix=/usr
    setarch $CARCH make
}

package() {
    cd $srcdir/$pkgname-$pkgver
    setarch $CARCH make DESTDIR=$pkgdir install
}

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