diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-01-25 19:47:56 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-01-25 19:47:56 -0600 |
commit | c4564f028834be792fa2906628818376c91c3cac (patch) | |
tree | 5a3b2514c7b0046213ae85c454f772434d43daba /testing/totem/APKBUILD | |
parent | 8de9d324148f021a711a4f4d722dcb4f467864c9 (diff) | |
download | aports-c4564f028834be792fa2906628818376c91c3cac.tar.bz2 aports-c4564f028834be792fa2906628818376c91c3cac.tar.xz |
testing/totem: new aport
Diffstat (limited to 'testing/totem/APKBUILD')
-rw-r--r-- | testing/totem/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/totem/APKBUILD b/testing/totem/APKBUILD new file mode 100644 index 0000000000..e90e5b7c68 --- /dev/null +++ b/testing/totem/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=totem +pkgver=2.32.0 +pkgrel=0 +pkgdesc="media player for gnome" +url="http://projects.gnome.org/totem" +arch="all" +license="GPL" +depends="gst-plugins-base-gnome gst-plugins-good-gnome" +depends_dev="gtk+-dev gstreamer-dev gst-plugins-base-dev gconf-dev totem-pl-parser-dev libunique-dev python-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" |