Switch to new download format and update dependencies
This commit is contained in:
@@ -1,9 +1,25 @@
|
|||||||
name: scenefx
|
name: scenefx
|
||||||
description: A drop-in replacement for the wlroots scene API that allows wayland compositors to render surfaces with eye-candy effects
|
description: A drop-in replacement for the wlroots scene API that allows wayland compositors to render surfaces with eye-candy effects
|
||||||
version: 0.4.1
|
version: 0.4.1
|
||||||
|
revision: 2
|
||||||
url: https://github.com/wlrfx/scenefx
|
url: https://github.com/wlrfx/scenefx
|
||||||
license: MIT
|
license: MIT
|
||||||
|
maintainers:
|
||||||
|
- [email protected]
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["libdrm","libglvnd","pixman","wayland","wlroots"]
|
|
||||||
make_depends: ["glslang","meson","wayland-protocols"]
|
|
||||||
type: source
|
type: source
|
||||||
|
depends:
|
||||||
|
- libdrm
|
||||||
|
- libglvnd
|
||||||
|
- pixman
|
||||||
|
- wayland
|
||||||
|
- wlroots-0.19
|
||||||
|
make_depends:
|
||||||
|
- glslang
|
||||||
|
- meson
|
||||||
|
- wayland-protocols
|
||||||
|
downloads:
|
||||||
|
- url: https://github.com/wlrfx/scenefx/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: fa23f6ff509168d4a5eb0c5a7ef3b8cf3d39e3fba18320c28256e6c91c85d9ff
|
||||||
|
|||||||
@@ -2,32 +2,18 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# 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
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://github.com/wlrfx/scenefx/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz"
|
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
|
||||||
# This function is used for downloading files and putting them into the correct location
|
|
||||||
prepare() {
|
|
||||||
wget "$DOWNLOAD"
|
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
||||||
}
|
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
meson setup build --prefix=/usr --libdir=/usr/lib -Dwerror=false
|
||||||
cd build
|
meson compile -C build
|
||||||
|
|
||||||
meson setup --prefix=/usr --libdir=/usr/lib -Dwerror=false ..
|
|
||||||
ninja
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/scenefx/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/scenefx/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user