# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'swfdec-mozilla'
setvar pkgver = '0.9.2'
setvar pkgrel = '0'
setvar pkgdesc = ""free plugin for Mozilla browsers that uses the Swfdec library for playing SWF files""
setvar url = ""http://swfdec.freedesktop.org""
setvar arch = ""all !aarch64""
setvar license = ""LGPL""
setvar makedepends = ""swfdec-dev""
setvar depends = ''
setvar source = ""http://swfdec.freedesktop.org/download/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$pkgname-$pkgver""
proc prepare {
	cd $_builddir
	update_config_sub || return 1
}

proc build {
	cd $_builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--with-plugin-dir=/usr/lib/mozilla/plugins/ \
		|| return 1
	make || return 1
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install
}

setvar md5sums = ""5e19c365d02f1ece2e7caec13c2b23d4  swfdec-mozilla-0.9.2.tar.gz""
setvar sha256sums = ""8c8cfb52b47efabefab90577fb118ab2699c803cebbc82891700f8e2d712343b  swfdec-mozilla-0.9.2.tar.gz""
setvar sha512sums = ""202681ad3d08058d72c6980cf90508968d9ce96aa88c86a545f2b5f5fdf107b488200bee444c829c4c5e30c3723ac98e797d5031afc27dc559319aac774db3fa  swfdec-mozilla-0.9.2.tar.gz""