core/gstreamer0.10-good/PKGBUILD
2011-06-16 18:31:27 +00:00

71 lines
3.7 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgbase=gstreamer0.10-good
pkgname=('gstreamer0.10-good' 'gstreamer0.10-good-plugins')
pkgver=0.10.30
pkgrel=1
arch=('i686' 'x86_64')
license=('LGPL')
makedepends=('intltool' 'pkgconfig' 'gstreamer0.10-base>=0.10.34' 'libavc1394>=0.5.3-3' 'libiec61883>=1.2.0' 'aalib>=1.4rc5-6' 'libshout>=2.2.2' 'libdv>=1.0.0'
'esound>=0.2.41' 'flac>=1.2.1' 'wavpack>=4.60.1' 'taglib>=1.6.3' 'libsoup>=2.30.1' 'v4l-utils' 'libcaca>=0.99.beta17' 'bzip2>=1.0.5' 'gdk-pixbuf2')
url="http://gstreamer.freedesktop.org/"
options=(!libtool !emptydirs)
source=(${url}/src/gst-plugins-good/gst-plugins-good-${pkgver}.tar.bz2)
md5sums=('62fd7a3ef187c4f99b3d7c352d58dae9')
build() {
cd "${srcdir}/gst-plugins-good-${pkgver}"
#
# We disable gconf, jack and pulse from the build.
# We're not using gconf, the jack plugin should be part of gstreamer0.10-bad-plugins,
# and the pulse plugin is provided by gstreamer0.10-pulse.
#
sed -i '/AC_PATH_XTRA/d' configure.ac
autoreconf
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--disable-static --enable-experimental \
--disable-schemas-install \
--disable-hal \
--disable-gconf \
--disable-jack \
--disable-pulse \
--with-package-name="GStreamer Good Plugins (Chakra GNU/Linux)" \
--with-package-origin="http://www.chakra-project.org/"
make || return 1
sed -e 's/gst sys ext/gst/' -i Makefile || return 1
}
package_gstreamer0.10-good() {
depends=('gstreamer0.10-base>=0.10.29' 'bzip2>=1.0.5')
pkgdesc="GStreamer Multimedia Framework Good plugin libraries"
conflicts=('gstreamer0.10-bad<=0.10.17')
cd "${srcdir}/gst-plugins-good-${pkgver}"
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1
rm -rf "${pkgdir}/etc/gconf"
}
package_gstreamer0.10-good-plugins() {
depends=("gstreamer0.10-good=${pkgver}" 'libavc1394>=0.5.3-3' 'libiec61883>=1.2.0' 'aalib>=1.4rc5-6' 'libshout>=2.2.2' 'libdv>=1.0.0' 'esound>=0.2.41' 'flac>=1.2.1'
'wavpack>=4.60.1' 'taglib>=1.6.3' 'libsoup>=2.30.1' 'v4l-utils' 'libcaca>=0.99.beta17' 'libpng>=1.4.1' 'libjpeg>=8.0.1' 'gdk-pixbuf2')
pkgdesc="GStreamer Multimedia Framework Good Plugins (gst-plugins-good)"
groups=('gstreamer0.10-plugins')
replaces=('gstreamer0.10-aalib' 'gstreamer0.10-wavpack' 'gstreamer0.10-shout2' 'gstreamer0.10-taglib' 'gstreamer0.10-libcaca' 'gstreamer0.10-libpng' 'gstreamer0.10-jpeg' 'gstreamer0.10-cairo' 'gstreamer0.10-flac' 'gstreamer0.10-speex' 'gstreamer0.10-gdkpixbuf' 'gstreamer0.10-dv1394' 'gstreamer0.10-annodex' 'gstreamer0.10-gconf' 'gstreamer0.10-esd' 'gstreamer0.10-cdio' 'gstreamer0.10-dv' 'gstreamer0.10-soup')
conflicts=('gstreamer0.10-aalib' 'gstreamer0.10-wavpack' 'gstreamer0.10-shout2' 'gstreamer0.10-taglib' 'gstreamer0.10-libcaca' 'gstreamer0.10-libpng' 'gstreamer0.10-jpeg' 'gstreamer0.10-cairo' 'gstreamer0.10-flac' 'gstreamer0.10-speex' 'gstreamer0.10-gdkpixbuf' 'gstreamer0.10-dv1394' 'gstreamer0.10-annodex' 'gstreamer0.10-gconf' 'gstreamer0.10-esd' 'gstreamer0.10-cdio' 'gstreamer0.10-dv' 'gstreamer0.10-bad-plugins<0.10.7' 'gstreamer0.10-soup')
cd "${srcdir}/gst-plugins-good-${pkgver}"
make -C sys DESTDIR="${pkgdir}" install || return 1
make -C ext GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1
install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
install -m644 gconf/gstreamer-0.10.schemas "${pkgdir}/usr/share/gconf/schemas/gstreamer0.10-good-plugins.schemas" || return 1
}