commit 5856416c7d9f726b0d2628dbafbbcbd0d9e9851c Author: EnumDev Date: Thu Mar 12 21:16:53 2026 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d96df7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Ignore BPM archives and signatures +*.bpm +*.bpm.sig diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..4b037cf --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Gitlab repository +REPO="wine/wine" + +# 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://gitlab.winehq.org/api/v4/projects/"$REPO"/releases/permalink/latest | jq -r '.tag_name') + +# Remove prefix +VERSION=${TAG_NAME//wine-/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..8d64022 --- /dev/null +++ b/pkg.info @@ -0,0 +1,63 @@ +name: wine +description: A compatibility layer for running Windows programs +version: "11.4" +revision: 1 +url: https://www.winehq.org/ +license: LGPL2.1-or-later +maintainers: + - enumdev@enumerated.dev +architecture: any +type: source +depends: + - desktop-file-utils + - fontconfig + - freetype2 + - gcc-libs + - gettext + - libpcap + - libunwind + - libxcursor + - libxi + - libxkbcommon + - libxrandr + - wayland +optional_depends: + - alsa-lib + - cups + - ffmpeg + - gnutls + - gst-plugins-bad + - gst-plugins-base + - gst-plugins-good + - libpulse + - libxcomposite + - libxinerama + - ocl-icd + - pcsclite + - sdl2-compat + - unixodbc +make_depends: + - alsa-lib + - ffmpeg + - gnutls + - gst-plugins-base + - libcups + - libpulse + - libxcomposite + - libxinerama + - libxxf86vm + - mesa + - mingw-w64-gcc + - opencl-headers + - ocl-icd + - pcsclite + - perl + - sdl2-compat + - unixodbc + - vulkan-headers + - vulkan-tools +downloads: + - url: https://dl.winehq.org/wine/source/${BPM_PKG_VERSION%.*}.x/wine-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 1970a46381d3bc2c44d651d08336370e499eeb8b53dc93cbd1ce544f7115e598 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..4353181 --- /dev/null +++ b/source.sh @@ -0,0 +1,24 @@ +# 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() { + mkdir build + cd build + + ../configure --prefix=/usr --disable-tests --enable-archs=x86_64,i386 + make +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + cd build + + make DESTDIR="$BPM_OUTPUT" install + + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/wine/LICENSE +}