aboutsummaryrefslogtreecommitdiffstats
path: root/testing/totem/APKBUILD
blob: 8d723109cf1e6e8066fed878805285c941ee85be (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
45
46
47
48
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=totem
pkgver=2.32.0
pkgrel=3
pkgdesc="media player for gnome"
url="http://projects.gnome.org/totem"
arch="x86 x86_64"
license="GPL"
depends="gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-plugins-base-gnome gst-plugins-good-gnome gst-ffmpeg"
depends_dev="gtk+-dev gstreamer-dev gst-plugins-base-dev gconf-dev totem-pl-parser-dev libunique-dev python-dev libsm-dev libice-dev"
makedepends="$depends_dev gnome-doc-utils intltool"
install="$pkgname.pre-deinstall $pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-doc $pkgname-mozilla"
source="ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--disable-scrollkeeper || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

mozilla() {
	pkgdesc="totem mozilla plugin"

	mkdir -p "$subpkgdir"/usr/lib/mozilla
	mv "$pkgdir"/usr/lib/mozilla/plugins "$subpkgdir"/usr/lib/mozilla/plugins
}

md5sums="2e55c3da316648ba860e3f88af2d30ab  totem-2.32.0.tar.bz2"