summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa124139ba9d013e0c202813ca0c597b8066e0dd (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
# Maintainer: Tim Lagnese <tim at inept tech>

pkgname=libvss-git
pkgver=r793.b3001c7
pkgrel=1

pkgdesc='High level string and text processing library'
url='https://github.com/AdaCore/VSS'
arch=('any')
license=('GPL3')

makedepends=('git' 'gcc-ada' 'gprbuild')
conflicts=('libvss')

source=("git+https://github.com/AdaCore/VSS.git")
sha1sums=('SKIP')

pkgver() {
    cd "$srcdir/VSS"
    printf "r%s.%s" \
        "$(git rev-list --count HEAD)" \
        "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/VSS"
	make BUILD_MODE=prod
}

package() {
    cd "$srcdir/VSS"

    for gpr in config gnat json text regexp
    do
        gprinstall -p -P gnat/vss_$gpr.gpr -XBUILD_MODE=prod --prefix="$pkgdir/usr"
    done
}