core/gst-libav/PKGBUILD

46 lines
1.1 KiB
Bash
Raw Normal View History

2014-07-30 12:53:46 +08:00
pkgname=gst-libav
pkgver=1.10.3
2014-07-30 12:53:46 +08:00
pkgrel=1
pkgdesc="Gstreamer libav Plugin"
arch=('x86_64')
license=('GPL')
url="http://gstreamer.freedesktop.org/"
depends=('gst-plugins-base-libs' 'bzip2' 'ffmpeg')
2014-07-30 12:53:46 +08:00
makedepends=('python' 'yasm')
options=(!emptydirs)
provides=("gst-ffmpeg=$pkgver-$pkgrel")
source=(${url}/src/$pkgname/$pkgname-$pkgver.tar.xz{,.asc})
sha256sums=('9a6bc165b1862b18b98d9f1755c43806e4839a80f69ec7ea9a2dab61b65752a9'
'SKIP')
validpgpkeys=('7F4BC7CC3CA06F97336BBFEB0668CC1486C2D7B5')
prepare() {
cd $pkgname-$pkgver
}
2014-07-30 12:53:46 +08:00
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--disable-static --with-libav-extra-configure="--enable-runtime-cpudetect" \
--with-package-name="GStreamer libav Plugin (Chakra Linux)" \
--with-package-origin="https://chakralinux.org/" \
--with-system-libav
2014-07-30 12:53:46 +08:00
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
# check failed in 2 tests, log provided
2014-07-30 12:53:46 +08:00
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="${pkgdir}" install
}