# Maintainer: Connor Behan # Contributor: mar77i pkgname=ming pkgver=0.4.8.r68.g04aee523 pkgrel=1 pkgdesc="SWF output library" arch=('x86_64') url="http://www.libming.net/" license=('GPL' 'LGPL') depends=('freetype2' 'libpng' 'flex' 'giflib') makedepends=('bison' 'pkgconf' 'git') options=('!emptydirs') source=(git+https://github.com/libming/libming.git#commit=04aee52363688426eab74f5d6180c149654a6473) sha256sums=('SKIP') pkgver() { cd "$srcdir"/libming git describe --long | sed 's/^ming-//;s/\([^-]*-g\)/r\1/;s/[-_]/./g' } build() { cd "$srcdir"/libming export CFLAGS="$CFLAGS -fcommon" ./autogen.sh PYTHON=/usr/bin/python ./configure --prefix=/usr # Strange that this can fail when we let the Makefile do it pushd src/actioncompiler bison -y -p swf4 -b swf4compiler swf4compiler.y bison -y -p swf5 -b swf5compiler swf5compiler.y popd make } package() { cd "$srcdir"/libming make DESTDIR="$pkgdir" install }