Split package
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
name: vlc
|
||||
description: Free and open source cross-platform multimedia player and framework
|
||||
version: 3.0.23
|
||||
revision: 1
|
||||
revision: 2
|
||||
url: https://www.videolan.org/vlc/
|
||||
license: GPL2-or-later,LGPL2.1-or-later
|
||||
architecture: any
|
||||
type: source
|
||||
depends:
|
||||
make_depends:
|
||||
- aalib
|
||||
- abseil-cpp
|
||||
- alsa-lib
|
||||
@@ -78,3 +78,77 @@ downloads:
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: e891cae6aa3ccda69bf94173d5105cbc55c7a7d9b1d21b9b21666e69eff3e7e0
|
||||
split_packages:
|
||||
- name: vlc
|
||||
depends:
|
||||
- aalib
|
||||
- abseil-cpp
|
||||
- alsa-lib
|
||||
- libaom
|
||||
- avahi
|
||||
- bash
|
||||
- cairo
|
||||
- dav1d
|
||||
- dbus
|
||||
- ffmpeg4.4
|
||||
- flac
|
||||
- fontconfig
|
||||
- freetype2
|
||||
- fribidi
|
||||
- gdk-pixbuf
|
||||
- glib
|
||||
- gnutls
|
||||
- gst-plugins-base
|
||||
- gtk3
|
||||
- harfbuzz
|
||||
- hicolor-icon-theme
|
||||
- jack
|
||||
- libarchive
|
||||
- libass
|
||||
- libglvnd
|
||||
- libjpeg-turbo
|
||||
- libmad
|
||||
- libmtp
|
||||
- libnfs
|
||||
- libnotify
|
||||
- libogg
|
||||
- libpng
|
||||
- libproxy
|
||||
- libpulse
|
||||
- librsvg
|
||||
- libsamplerate
|
||||
- libsecret
|
||||
- libssh2
|
||||
- libudev
|
||||
- libva
|
||||
- libvlc
|
||||
- libvorbis
|
||||
- libvpx
|
||||
- libx11
|
||||
- libxcb
|
||||
- libxinerama
|
||||
- libxml2
|
||||
- libxpm
|
||||
- lua
|
||||
- mesa
|
||||
- mpg123
|
||||
- opus
|
||||
- pcsclite
|
||||
- protobuf-compiler
|
||||
- qt6-base
|
||||
- qt6-svg
|
||||
- speex
|
||||
- speexdsp
|
||||
- taglib
|
||||
- wayland
|
||||
- wayland-protocols
|
||||
- x264
|
||||
- x265
|
||||
- xcb-util-keysyms
|
||||
- zlib
|
||||
- name: libvlc
|
||||
description: https://apps.kde.org/dragonplayer/
|
||||
depends:
|
||||
- dbus
|
||||
- gcc-libs
|
||||
- glibc
|
||||
|
||||
@@ -9,17 +9,35 @@ build() {
|
||||
make
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
make check
|
||||
_pick() {
|
||||
local p="$1" f d; shift
|
||||
for f; do
|
||||
[ -d "$BPM_WORKDIR"/output_"$p" ] || { echo "Split package $p not found"; exit 1; }
|
||||
d="$BPM_WORKDIR"/output_"$p"/"${f#$BPM_OUTPUT}"
|
||||
mkdir -p "$(dirname "$d")"
|
||||
mv "$f" "$d"
|
||||
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
||||
done
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
package_vlc() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
cd "$BPM_OUTPUT"
|
||||
|
||||
# Move library files into split package
|
||||
_pick libvlc usr/include
|
||||
_pick libvlc usr/lib/libvlc*
|
||||
_pick libvlc usr/lib/pkgconfig
|
||||
_pick libvlc usr/lib/vlc/vlc-cache-gen
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/vlc
|
||||
}
|
||||
|
||||
package_libvlc() {
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/vlc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user