aboutsummaryrefslogtreecommitdiffstats
path: root/main/swfdec/APKBUILD
blob: eb0d1cb08674bc242dc9797c09ffe4baf1a4d884 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=swfdec
pkgver=0.9.2
pkgrel=0
pkgdesc="free library for decoding and rendering Flash animations"
url="http://swfdec.freedesktop.org"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends_dev="glib-dev liboil-dev cairo-dev pango-dev gtk+2.0-dev libsoup-dev
	gstreamer0.10-dev gst-plugins-base0.10-dev alsa-lib-dev"
makedepends="$depends_dev"
depends=
source="http://$pkgname.freedesktop.org/download/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--enable-gtk \
		--enable-gstreamer \
		--enable-soup \
		--with-audio=alsa \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="7be5e39236e2d6efa61a18e83e5ab73d  swfdec-0.9.2.tar.gz"
sha256sums="7d56a3044c19e7ca4b492f3739d9aa6f6bdb6e51ecf4daa5d29c035ae430f1ef  swfdec-0.9.2.tar.gz"
sha512sums="8904379b17b2e9582fe01d28d66c8ead20830b8588acf4c29d43cf984d653fb8f8246a01518206bb82a9c04e7adeb91bc4db8488e331194452cb1bc7c5ba072a  swfdec-0.9.2.tar.gz"