diff --git a/srcpkgs/gprbuild/template b/srcpkgs/gprbuild/template new file mode 100644 index 00000000000000..2523b1f5073544 --- /dev/null +++ b/srcpkgs/gprbuild/template @@ -0,0 +1,37 @@ +# Template file for 'gprbuild' +pkgname=gprbuild +version=25.0.0 +revision=1 +depends="gcc-ada" +short_desc="Advanced build system designed to construct multi-language systems" +maintainer="QuetzalBSD " +license="GPL-3.0-or-later" +homepage="https://github.com/AdaCore/gprbuild" + +adacore_github="https://github.com/AdaCore" +distfiles="${adacore_github}/gprbuild/archive/refs/tags/v${version}.tar.gz>gprbuild-${version}.tar.gz + ${adacore_github}/xmlada/archive/refs/tags/v${version}.tar.gz>xmlada-${version}.tar.gz + ${adacore_github}/gprconfig_kb/archive/refs/tags/v${version}.tar.gz>gprconfig_kb-${version}.tar.gz" + +checksum="d12f94c1ec0b6e219f6b162f71f57129d22426e7798092f5f85b9ec2cc818bf1 + dbb5984a0931311c7a787a679ef4cfaeeedd357474a585dc170140ef2251dcca + 802e6d38a3b110897924a9c16e143cb86360f2dde94bb5b9144c7c391e37b121" + +do_build() { + cd gprbuild-${version} + ./bootstrap.sh \ + --with-xmlada=../xmlada-${version} \ + --with-kb=../gprconfig_kb-${version} \ + --build + cd .. +} + +do_install() { + cd gprbuild-${version} + ./bootstrap.sh --prefix=${DESTDIR}/usr/ \ + --with-xmlada=../xmlada-${version} \ + --with-kb=../gprconfig_kb-${version} \ + --install + cd .. +} +