mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 11:34:36 +08:00
43 lines
1.0 KiB
Bash
43 lines
1.0 KiB
Bash
pkgname=gst-libav
|
|
pkgver=1.6.3
|
|
pkgrel=1
|
|
pkgdesc="Gstreamer libav Plugin"
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
url="http://gstreamer.freedesktop.org/"
|
|
depends=('gst-plugins-base-libs' 'bzip2' 'ffmpeg')
|
|
makedepends=('python' 'yasm')
|
|
options=(!emptydirs)
|
|
provides=("gst-ffmpeg=$pkgver-$pkgrel")
|
|
source=(${url}/src/$pkgname/$pkgname-$pkgver.tar.xz)
|
|
sha256sums=('857b9c060a0337de38c6d26238c47352433c02eabf26c2f860c854dbc35bd4ab')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
}
|
|
|
|
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="http://www.chakraos.org/" \
|
|
--with-system-libav
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|