From 80f7d25c10232621ccdaaa3943656e65e44dea5d Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 6 Jan 2026 14:33:28 +0200 Subject: [PATCH] Initial Commit --- .gitignore | 2 ++ check-version.sh | 12 ++++++++ pkg.info | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ source.sh | 25 +++++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 .gitignore create mode 100644 check-version.sh create mode 100644 pkg.info create mode 100644 source.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..45f03a9 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitlab repository +REPO="videolan/vlc" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://code.videolan.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | grep -v '-' | head -n1) + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..bda6dd8 --- /dev/null +++ b/pkg.info @@ -0,0 +1,80 @@ +name: vlc +description: Free and open source cross-platform multimedia player and framework +version: 3.0.23 +revision: 1 +url: https://www.videolan.org/vlc/ +license: GPL2-or-later,LGPL2.1-or-later +architecture: any +type: source +depends: + - aalib + - abseil-cpp + - alsa-lib + - libaom + - avahi + - bash + - cairo + - dav1d + - dbus + - ffmpeg4.4 + - flac + - fontconfig + - freetype2 + - fribidi + - gcc-libs + - gdk-pixbuf + - glib + - glibc + - 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 + - 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 +downloads: + - url: https://download.videolan.org/vlc/${BPM_PKG_VERSION}/vlc-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: e891cae6aa3ccda69bf94173d5105cbc55c7a7d9b1d21b9b21666e69eff3e7e0 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..5c82e85 --- /dev/null +++ b/source.sh @@ -0,0 +1,25 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE +# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + BUILDCC=gcc ./configure --prefix=/usr --prefix=/usr --disable-libplacebo + 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 +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + make DESTDIR="$BPM_OUTPUT" install + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/vlc +}