Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
# Ignore BPM archives and signatures
|
||||||
|
*.bpm
|
||||||
|
*.bpm.sig
|
||||||
@@ -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"
|
||||||
@@ -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:
|
||||||
|
- [email protected]
|
||||||
|
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
|
||||||
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user