diff --git a/pkg.info b/pkg.info index 0dd7b59..d8c0df0 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,28 @@ name: libnma description: NetworkManager GUI client library version: 1.10.6 -revision: 2 +revision: 3 url: https://gitlab.gnome.org/GNOME/libnma license: GPL2-or-later,LGPL2.1-or-later +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["gtk3","gtk4","gcr4","iso-codes","networkmanager","mobile-broadband-provider-info"] -make_depends: ["gobject-introspection","meson","vala"] type: source +depends: + - dconf + - gtk3 + - gtk4 + - gcr4 + - iso-codes + - networkmanager + - mobile-broadband-provider-info +make_depends: + - gobject-introspection + - gtk-doc + - meson + - vala +downloads: + - url: https://gitlab.gnome.org/GNOME/libnma/-/archive/${BPM_PKG_VERSION}/libnma-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: c88fd3408c4ff166b06179b5ce5186e08a57b64eb8c9b22e055ca0dbc5e8002b diff --git a/source.sh b/source.sh index 8bca237..b20c90b 100644 --- a/source.sh +++ b/source.sh @@ -2,40 +2,23 @@ # 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://gitlab.gnome.org/GNOME/libnma/-/archive/${BPM_PKG_VERSION}/libnma-${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 --buildtype=release -Dgtk_doc=false -Dlibnma_gtk4=true - meson compile + meson setup build --prefix=/usr -Dlibnma_gtk4=true + meson compile -C build } # The check function is executed in the source directory # This function is used to run tests to verify the package has been compiled correctly check() { - cd build - - meson test + meson test -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 - - meson install --destdir="$BPM_OUTPUT" + meson install -C build --destdir="$BPM_OUTPUT" # Install package license install -Dm644 "$BPM_SOURCE"/COPYING{,.LGPL} -t "$BPM_OUTPUT"/usr/share/licenses/libnma/