Commit a38d1896 authored by Leo's avatar Leo Committed by Natanael Copa

community/vlc: rebuild for libdc1394

parent 108ff417
......@@ -121,16 +121,13 @@ source="https://get.videolan.org/vlc/$pkgver/$pkgname-$pkgver.tar.xz
libvpx-1.8.patch
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
NOCONFIGURE=1 ./bootstrap
NOCONFIGURE=1 ./bootstrap
}
build() {
local _arch_opts=
cd "$builddir"
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
case "$CARCH" in
......@@ -179,15 +176,13 @@ build() {
--enable-wma-fixed \
--enable-x264 \
--enable-xvideo \
$_arch_opts \
|| return 1
$_arch_opts
make || return 1
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
# delete cache as it's autocreated by trigger
rm -rf "$pkgdir"/usr/lib/vlc/plugins/plugins.dat
# delete unneeded mozilla and kde support files
......@@ -196,7 +191,6 @@ package() {
}
check() {
cd "$builddir"
make check
}
......@@ -243,7 +237,7 @@ qt() {
cd "$pkgdir"
for i in $(find . -type f ); do
if ldd $i 2>/dev/null | grep -q "libQt"; then
_mv "$i" || return 1
_mv "$i"
fi
done
mkdir -p "$subpkgdir"/usr/bin
......@@ -260,7 +254,7 @@ xorg() {
cd "$pkgdir"
for i in $(find . -type f ); do
if ldd $i 2>/dev/null | grep -E -q "libX|x11|libxcb|libGL"; then
echo $i | grep libavcodec_plugin.so || _mv "$i" || return 1
echo $i | grep libavcodec_plugin.so || _mv "$i"
fi
done
......@@ -290,7 +284,7 @@ daemon() {
}
libs() {
depends=
depends=""
mkdir -p "$subpkgdir"/usr/lib/vlc
mv "$pkgdir"/usr/lib/vlc/vlc-cache-gen \
"$subpkgdir"/usr/lib/vlc/
......@@ -300,7 +294,7 @@ libs() {
_mv_plugins() {
local plugin=$1
pkgdesc="$pkgname $plugin plugin"
depends=
depends=""
mkdir -p "$subpkgdir"/usr/lib/vlc/plugins
mv "$pkgdir"/usr/lib/vlc/plugins/"$plugin" \
"$subpkgdir"/usr/lib/vlc/plugins
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment