From 019c148ec5e89d6d91bd1ddd2a934ba123db0be4 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 5 Apr 2026 11:45:30 +0300 Subject: [PATCH] Initial commit --- .gitignore | 3 +++ check-version.sh | 4 ++++ pkg.info | 39 +++++++++++++++++++++++++++++++++++++++ source.sh | 19 +++++++++++++++++++ 4 files changed, 65 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..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..cd89e29 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Ignore this package +echo "ignore" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..c292b3c --- /dev/null +++ b/pkg.info @@ -0,0 +1,39 @@ +name: wlroots-0.19 +description: A modular Wayland compositor library +version: 0.19.3 +revision: 1 +url: https://gitlab.freedesktop.org/wlroots/wlroots +license: MIT +maintainers: + - enumdev@enumerated.dev +architecture: any +type: source +depends: + - libdisplay-info + - libglvnd + - libinput + - libxcb + - libxkbcommon + - lcms2 + - mesa + - seatd + - udev + - vulkan-loader + - wayland + - xcb-util-errors + - xcb-util-renderutil + - xcb-util-wm +optional_depends: + - xorg-xwayland +make_depends: + - glslang + - meson + - ninja + - vulkan-headers + - wayland-protocols + - xorg-xwayland +downloads: + - url: https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${BPM_PKG_VERSION}/wlroots-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: a6ff89b64ea15e424d1b0db4a22145fccf5ec2ff2e7b8af0fa35e2ac8975986f diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..2426513 --- /dev/null +++ b/source.sh @@ -0,0 +1,19 @@ +# 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() { + meson setup build --prefix=/usr --libdir=/usr/lib + meson compile -C build +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + meson install -C build --destdir="$BPM_OUTPUT" + + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/${BPM_PKG_NAME}/LICENSE +}