diff --git a/pkg.info b/pkg.info index 70a0e85..f8282f9 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,25 @@ name: scenefx 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 +revision: 2 url: https://github.com/wlrfx/scenefx license: MIT +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["libdrm","libglvnd","pixman","wayland","wlroots"] -make_depends: ["glslang","meson","wayland-protocols"] 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 diff --git a/source.sh b/source.sh index 7b7ea21..81eb2c6 100644 --- a/source.sh +++ b/source.sh @@ -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 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 # This function is used to compile the source code build() { - mkdir build - cd build - - meson setup --prefix=/usr --libdir=/usr/lib -Dwerror=false .. - ninja + meson setup build --prefix=/usr --libdir=/usr/lib -Dwerror=false + 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() { - cd build - - DESTDIR="$BPM_OUTPUT" ninja install + meson install -C build --destdir="$BPM_OUTPUT" + # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/scenefx/LICENSE }