mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:07:14 +08:00
60 lines
1.8 KiB
Bash
60 lines
1.8 KiB
Bash
#
|
|
# Packages of Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgbase=gstreamer0.10-ugly
|
|
pkgname=('gstreamer0.10-ugly' 'gstreamer0.10-ugly-plugins')
|
|
pkgver=0.10.19
|
|
pkgrel=10
|
|
arch=('x86_64')
|
|
license=('LGPL')
|
|
makedepends=('pkgconfig' 'gstreamer0.10-base>=0.10.34' 'libdvdread' 'lame' 'libmpeg2' 'a52dec' 'libmad' 'libsidplay' 'libcdio' 'libx264' 'x264' 'opencore-amr' 'git')
|
|
url="http://gstreamer.freedesktop.org/"
|
|
source=("git://anongit.freedesktop.org/gstreamer-sdk/gst-plugins-ugly#commit=d637756a8e569753e9869c2c0728288f5dbc5089"
|
|
opencore-amr.patch
|
|
cdio-cd-text-api.patch)
|
|
md5sums=('SKIP'
|
|
'd8feb6c99bfaff8be6b2c48ea4e98e47'
|
|
'6c1c665f864387f3a77d32231fedeaab')
|
|
|
|
prepare() {
|
|
cd gst-plugins-ugly
|
|
patch -Np0 -i ../opencore-amr.patch
|
|
patch -Np1 -i ../cdio-cd-text-api.patch
|
|
sed -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' -i configure.ac
|
|
}
|
|
|
|
build() {
|
|
cd gst-plugins-ugly
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
--disable-static --enable-experimental --disable-gtk-doc \
|
|
--with-package-name="GStreamer Ugly Plugins (Archlinux)" \
|
|
--with-package-origin="http://www.archlinux.org/"
|
|
make
|
|
sed -e 's/gst-libs gst ext/gst-libs gst/' -i Makefile
|
|
}
|
|
|
|
check() {
|
|
cd gst-plugins-ugly
|
|
make check
|
|
}
|
|
|
|
package_gstreamer0.10-ugly() {
|
|
pkgdesc="GStreamer Multimedia Framework Ugly plugin libraries"
|
|
depends=('gstreamer0.10-base>=0.10.36')
|
|
|
|
cd gst-plugins-ugly
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|
|
|
|
package_gstreamer0.10-ugly-plugins() {
|
|
pkgdesc="GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)"
|
|
depends=("gstreamer0.10-ugly=${pkgver}" 'libdvdread' 'lame' 'libmpeg2' 'a52dec' 'libmad' 'libsidplay' 'libcdio' 'libx264' 'opencore-amr')
|
|
groups=('gstreamer0.10-plugins')
|
|
|
|
cd gst-plugins-ugly
|
|
make -C ext DESTDIR="${pkgdir}" install
|
|
}
|