diff options
author | Rod Kay | 2021-06-21 17:16:06 +1000 |
---|---|---|
committer | Rod Kay | 2021-06-21 17:16:06 +1000 |
commit | 065921484bbaf78cffba28e9cfd2fdafca0dd9b7 (patch) | |
tree | b677e12f3596c0db58ae1854f5b02133a84aabdf | |
parent | c03a226621fbde2b0fc0a30125220e7ea9b6cc5a (diff) | |
download | aur-065921484bbaf78cffba28e9cfd2fdafca0dd9b7.tar.gz |
Install the licenses.
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -11,7 +11,7 @@ pkgrel=2 pkgdesc="Builder for multi-language systems" arch=('i686' 'x86_64') url="https://github.com/AdaCore/gprbuild/" -license=('GPL3') +license=('GPL3' 'custom') makedepends=('gprbuild-bootstrap' 'xmlada') source=( @@ -55,6 +55,20 @@ build() { make GPRBUILD_OPTIONS="$GPRBUILD_OPTIONS" build } +_install_licenses() { + cd "$srcdir/$pkgbase-$pkgver" + + # Install the license. + install -D -m644 \ + "COPYING3" \ + "$pkgdir/usr/share/licenses/$pkgname/COPYING3" + + # Install the custom license. + install -D -m644 \ + "COPYING.RUNTIME" \ + "$pkgdir/usr/share/licenses/$pkgname/COPYING.RUNTIME" +} + package_libgpr() { pkgdesc="Ada library to handle GPRbuild project files" depends=('xmlada') @@ -65,6 +79,7 @@ package_libgpr() { cd "$srcdir/$pkgbase-$pkgver" make prefix="$pkgdir/usr" libgpr.install + _install_licenses } package_gprbuild() { @@ -74,6 +89,7 @@ package_gprbuild() { cd "$srcdir/$pkgbase-$pkgver" make prefix="$pkgdir/usr" install + _install_licenses # We don't need to distribute the installation script rm -f -- "$pkgdir/usr/doinstall" |