summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0440e3d5a261a62178dc804e3a404b016321debd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Rod Kay <charlie5 on #ada at irc.libera.chat>

pkgname=libvss
epoch=1
pkgver=22.0.0
pkgrel=1

pkgdesc="A high level string and text processing library for Ada."
url="https://github.com/AdaCore/VSS"

arch=('i686' 'x86_64')
license=('GPL3' 'custom')

makedepends=('gprbuild')
         
source=("https://github.com/AdaCore/VSS/archive/refs/tags/v22.0.0.tar.gz")
sha256sums=(eddccea4b109ce67f13c92937e59e5ae00a93244c8c05b1234c7b6413451f24e)

build()
{
   cd "$srcdir/VSS-22.0.0"
   make all
}

package()
{
   cd "$srcdir/VSS-22.0.0"

   gprinstall -p --prefix="$pkgdir/usr" gnat/vss_json.gpr
   gprinstall -p --prefix="$pkgdir/usr" gnat/vss_text.gpr
   gprinstall -p --prefix="$pkgdir/usr" gnat/vss_gnat.gpr

   # 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"
}