testing/gprbuild: new aport

This commit is contained in:
Ian Douglas Scott 2019-12-23 17:42:04 -08:00 committed by Rasmus Thomsen
parent 296bfafad9
commit 3b159271cf

28
testing/gprbuild/APKBUILD Normal file
View File

@ -0,0 +1,28 @@
# Contributor: Ian Douglas Scott <ian@iandouglasscott.com>
# Maintainer: Ian Douglas Scott <ian@iandouglasscott.com>
pkgname=gprbuild
pkgver=2019
pkgrel=0
pkgdesc="Builder for multi-language systems"
arch="all"
url="https://github.com/AdaCore/gprbuild"
license="GPL-3.0-or-later"
depends="gcc-gnat"
source="$pkgname-$pkgver.tar.gz::http://mirrors.cdn.adacore.com/art/5cdf8e8031e87a8f1d425093 xmlada-$pkgver.tar.gz::http://mirrors.cdn.adacore.com/art/5cdf916831e87a8f1d4250b5"
# gprbuild doesn't seem to have tests
options="!check"
_gprbuild_srcdir=$srcdir/$pkgname-$pkgver-20190517-194D8-src
_xmlada_srcdir=$srcdir/xmlada-$pkgver-20190429-19B9D-src
build() {
cd $_gprbuild_srcdir
DESTDIR="$PWD/dest" ./bootstrap.sh --prefix=/usr --with-xmlada=$_xmlada_srcdir
}
package() {
mkdir -p "$pkgdir"
cp -r $_gprbuild_srcdir/dest/usr "$pkgdir"
}
sha512sums="0388d7e6cdf625fef40b33da764091b3283dd88714c64ecfad4b5e99253f183b1a9b717c19281e6d45cc4277a05fadb2e2ace394d6f30638664b66c97123052b gprbuild-2019.tar.gz
f8e0e25b0aee9a7a18223ae7761603082af55134f062c767d0cd0dbf0dbcb2058fc7c57532b567fb2c6efa464a53ead57b300578e98962025866e5c3ad73e380 xmlada-2019.tar.gz"