Files
BMLFS/build-scripts/vlc.build
2022-04-19 19:45:15 -05:00

73 lines
2.8 KiB
Bash

#! /bin/bash
# VLC
# Source: https://download.videolan.org/vlc/3.0.16/vlc-3.0.16.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: NONE
# Recommended: gst-plugins-ugly a52dec libgcrypt libmad alsa-lib
# Recommended: desktop-file-utils ffmpeg lua52 qt5-qtsvg
# Optional: dbus libidn libssh2 gst-plugins-bad gst-plugins-good
patch -Np1 -i ../patches/vlc-alpine/check-headless.patch
patch -Np1 -i ../patches/vlc-alpine/disable-sub-autodetect-fuzzy-1-test.patch
patch -Np1 -i ../patches/vlc-alpine/fribidi_allow_deprecated.patch
patch -Np1 -i ../patches/vlc-alpine/test-s390x.patch
NOCONFIGURE=1 ./bootstrap &&
CFLAGS=" -fcommon -D_GNU_SOURCE" CXXFLAGS="-fcommon" \
BUILDCC="gcc -std=c99" \
./configure --prefix=/usr \
--disable-vpx \
--enable-x264 \
--enable-merge-ffmpeg \
--without-mpg123 $BUILDTRUPLE &&
read -p "Compile?" && make -j2 &&
sudo -S make DESTDIR=$BUILD docdir=/usr/share/doc/vlc-3.0.16 install &&
sudo -S mkdir -pv /BMAN/install /BMAN/usr/share && \
sudo -S mv $BUILD/usr/share/doc /BMAN/usr/share/ && \
sudo -S mv $BUILD/usr/share/man /BMAN/usr/share/ && \
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
vlc: vlc (VLC media player)
vlc:
vlc: VLC media player is a free and open source media player and multi-
vlc: media framework written by the VideoLAN project. VLC is a portable
vlc: multimedia player, encoder, and streamer supporting many audio and
vlc: video codecs and file formats as well as DVDs, VCDs, and various
vlc: streaming protocols. It is able to stream over networks and to
vlc: transcode multimedia files and save them into various formats.
vlc:
vlc: homepage: http://www.videolan.org/vlc/
vlc:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/vlc-3.0.16-$(uname -m)-mlfs.txz && \
cd /BMAN && \
cat > /tmp/slack-desc << "EOF"
vlc-doc: Manuals for vlc (VLC media player)
vlc-doc:
vlc-doc: A media player is a free and open source media player and multi-
vlc-doc: media framework written by the VideoLAN project.
vlc-doc:
vlc-doc: http://www.videolan.org/vlc/
vlc-doc:
EOF
sudo -S mv -v /tmp/slack-desc install/ && \
sudo -S makepkg -l y -c n $PKGS/vlc-doc-3.0.16-noarch-mlfs.txz && \
sudo -S rm -rf ${BUILD}/* /BMAN/*