mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:54:37 +08:00
61cb4a22c4
Fix #51 #18 #65
64 lines
1.7 KiB
Bash
64 lines
1.7 KiB
Bash
pkgname=gst-libav
|
|
pkgver=1.14.1
|
|
pkgrel=1
|
|
pkgdesc="Gstreamer libav Plugin"
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
url="http://gstreamer.freedesktop.org/"
|
|
depends=(gst-plugins-base-libs bzip2)
|
|
makedepends=(python3 gtk-doc autoconf-archive git yasm)
|
|
options=(!emptydirs)
|
|
provides=("gst-ffmpeg=$pkgver-$pkgrel")
|
|
_commit=4c3e87fec718c64282f35ab58492771a77147da6 # tags/1.14.1^0
|
|
source=("git+https://anongit.freedesktop.org/git/gstreamer/gst-libav#commit=$_commit"
|
|
"gst-common::git+https://anongit.freedesktop.org/git/gstreamer/common"
|
|
"git+https://git.videolan.org/git/ffmpeg" "git://git.libav.org/gas-preprocessor")
|
|
sha256sums=('SKIP'
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
|
|
git submodule init
|
|
git config --local submodule.common.url "$srcdir/gst-common"
|
|
git config --local submodule.gst-libs/ext/libav.url "$srcdir/ffmpeg"
|
|
git config --local submodule.gst-libs/ext/gas-preprocessor.url "$srcdir/gas-preprocessor"
|
|
git submodule update
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
|
|
./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/" \
|
|
--without-system-libav \
|
|
--enable-experimental
|
|
|
|
# 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
|
|
check() {
|
|
cd $pkgname
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|