From d142031647f2af95ea7458bc19cb825c1aecd807 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 1 Oct 2025 16:19:41 +0300 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ check-version.sh | 4 ++++ pkg.info | 28 ++++++++++++++++++++++++++++ source.sh | 25 +++++++++++++++++++++++++ 4 files changed, 59 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..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file 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..645ad13 --- /dev/null +++ b/pkg.info @@ -0,0 +1,28 @@ +name: glade +description: RAD tool to enable quick & easy development of user interfaces for the GTK toolkit and the GNOME desktop environment +version: 3.40.0 +revision: 1 +url: https://glade.gnome.org/ +license: GPL2-or-later,LGPL2.1-or-later +architecture: any +type: source +depends: + - gtk3 + - libxml2 +optional_depends: + - python-pygobject + - webkitgtk3 +make_depends: + - docbook-xsl-nons + - glib + - gobject-introspection + - itstool + - meson + - python-pygobject + - python-setuptools + - webkitgtk3 +downloads: + - url: https://download.gnome.org/sources/glade/${BPM_PKG_VERSION%.*}/glade-${BPM_PKG_VERSION}.tar.xz + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: 31c9adaea849972ab9517b564e19ac19977ca97758b109edc3167008f53e3d9c diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..8b5a7bf --- /dev/null +++ b/source.sh @@ -0,0 +1,25 @@ +# 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 + +prepare() { + cd "$BPM_SOURCE" + # Fix building with webkit2gtk-4.1 + sed -i 's/webkit2gtk-4.0/webkit2gtk-4.1/' meson.build +} + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + meson setup build --prefix=/usr -Dintrospection=true -Dwebkit2gtk=enabled + 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"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/glade/ +}