aboutsummaryrefslogtreecommitdiffstats
path: root/main/swfdec/APKBUILD
blob: 30660b3b8cf1368da1addbb89c26255d365d4351 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=swfdec
pkgver=0.8.4
pkgrel=9
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/0.8/$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
	find "$pkgdir" -name '*.la' -delete
}
md5sums="aece501d0e73f3e564200a44ec03c385  swfdec-0.8.4.tar.gz"