commit 4e9eb9d86c87ffe76de721a50b6ea92066bfd67d Author: EnumDev Date: Wed Oct 1 16:26:46 2025 +0300 Initial commit 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..07bbbbe --- /dev/null +++ b/pkg.info @@ -0,0 +1,22 @@ +name: gtksourceview4 +description: A text widget adding syntax highlighting and more to GNOME +version: 4.8.4 +revision: 1 +url: https://wiki.gnome.org/Projects/GtkSourceView +license: GPL2-or-later +architecture: any +type: source +depends: + - gtk3 + - libxml2 +make_depends: + - glade + - glib + - gobject-introspection + - meson + - vala +downloads: + - url: https://download.gnome.org/sources/gtksourceview/${BPM_PKG_VERSION%.*}/gtksourceview-${BPM_PKG_VERSION}.tar.xz + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: 7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb5958420a87d diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..cf1e4db --- /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 -Dglade_catalog=true + 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 "$BPM_OUTPUT"/usr/share/licenses/gtksourceview4/COPYING +}