From 3ab7cab8ac33130dcefed896d1af3f1bba4ff821 Mon Sep 17 00:00:00 2001 From: "Estevan Castilho (Tevo)" Date: Fri, 20 Dec 2024 02:11:10 +0000 Subject: [PATCH] New package: gprbuild-25.0.0 --- common/shlibs | 1 + srcpkgs/gprbuild/template | 49 +++++++++++++++++++++++++++++++++++++++ srcpkgs/libgpr | 1 + srcpkgs/libgpr-devel | 1 + 4 files changed, 52 insertions(+) create mode 100644 srcpkgs/gprbuild/template create mode 120000 srcpkgs/libgpr create mode 120000 srcpkgs/libgpr-devel diff --git a/common/shlibs b/common/shlibs index 964bce100999f4..618f86175840b2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4550,3 +4550,4 @@ libxmlada_dom.so.18.0w xmlada-25.0.0_1 libxmlada_sax.so.18.0w xmlada-25.0.0_1 libxmlada_unicode.so.18.0w xmlada-25.0.0_1 libxmlada_input_sources.so.18.0w xmlada-25.0.0_1 +libgpr.so libgpr-25.0.0_1 diff --git a/srcpkgs/gprbuild/template b/srcpkgs/gprbuild/template new file mode 100644 index 00000000000000..ea936afd10af3c --- /dev/null +++ b/srcpkgs/gprbuild/template @@ -0,0 +1,49 @@ +# Template file for 'gprbuild' +pkgname=gprbuild +version=25.0.0 +revision=1 +build_style=gnu-configure +short_desc="Advanced build system for multi-language programs" +maintainer="Estevan Castilho " +license=GPL-3.0 +homepage="https://github.com/AdaCore/gprbuild" +distfiles="https://github.com/AdaCore/gprbuild/archive/refs/tags/v${version}.tar.gz" +checksum="d12f94c1ec0b6e219f6b162f71f57129d22426e7798092f5f85b9ec2cc818bf1" + +hostmakedepends="gcc-ada gprbuild-bootstrap which" +makedepends="xmlada-devel" +depends="gprconfig_kb" + +subpackages="libgpr libgpr-devel" + +make_build_target="all libgpr.build" +make_install_target="install libgpr.install" + +do_configure() { + make prefix="$DESTDIR/usr" setup +} + +libgpr_package() { + license=GPL-3.0-with-GCC-exception + short_desc+=" - library" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + cd "$DESTDIR" + # vmove isn't the biggest fan of globs on parent directories + for file in usr/lib/gpr/*/*/*.so*; do + vmove "$file" + done + } +} + +libgpr-devel_package() { + license=GPL-3.0-with-GCC-exception + short_desc+=" - library - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove "usr/lib/*.so" + vmove usr/lib/gpr + vmove usr/share/gpr + vmove usr/include + } +} diff --git a/srcpkgs/libgpr b/srcpkgs/libgpr new file mode 120000 index 00000000000000..5cd80f8ab7fe46 --- /dev/null +++ b/srcpkgs/libgpr @@ -0,0 +1 @@ +gprbuild \ No newline at end of file diff --git a/srcpkgs/libgpr-devel b/srcpkgs/libgpr-devel new file mode 120000 index 00000000000000..5cd80f8ab7fe46 --- /dev/null +++ b/srcpkgs/libgpr-devel @@ -0,0 +1 @@ +gprbuild \ No newline at end of file