summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70bb2239a02f46d3efe64bae11e4e9a51c75d6d7 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Maintainer: Tim Lagnese <tim at inept tech>

pkgname=alire
pkgver=1.0.0
pkgrel=2
pkgdesc="A catalog of ready-to-use Ada libraries plus a command-line tool (alr) to obtain, build, and incorporate them into your own projects. It aims to fulfill a similar role to Rust's cargo or OCaml's opam."
arch=('i686' 'x86_64')
url="https://alire.ada.dev/"
license=(GPL3)
depends=(glibc)
makedepends=(git gprbuild)
source=("$pkgname-$pkgver.tar.gz::https://github.com/alire-project/alire/archive/refs/tags/v$pkgver.tar.gz"
git+https://github.com/alire-project/xmlezout.git
git+https://github.com/mosteo/ajunitgen.git
git+https://github.com/mosteo/aaa.git
git+https://github.com/alire-project/semantic_versioning.git
git+https://github.com/alire-project/simple_logging.git
git+https://github.com/pmderodat/ada-toml.git
git+https://github.com/alire-project/gnatcoll-core.git
git+https://github.com/alire-project/libhello.git
git+https://github.com/mosteo/ansi-ada
git+https://github.com/mosteo/uri-ada.git
git+https://github.com/mosteo/minirest
git+https://github.com/Fabien-Chouteau/spdx_ada#commit=319ca7bcc1e2eb1843aad1f64aca3ecba91a2bcc)
b2sums=('bad08a570d464d454739edb42717a5ad33eb132dea4c3f2752e26bf122aa6a6b058e1b89987a9c8a6c5d432492b29586fbefad0e54207f8e7a9601ef1bbba9a0'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP')

prepare()
{
  # Get the submodules from the sources above
  cd "$srcdir/$pkgname-$pkgver"
  git submodule init
  git config submodule.deps/xmlezout.url "$srcdir"/xmlezout
  git config submodule.deps/ajunitgen.url "$srcdir"/ajunitgen
  git config submodule.deps/aaa.url "$srcdir"/aaa
  git config submodule.deps/semantic_versioning.url "$srcdir"/semantic_versioning
  git config submodule.deps/simple_logging.url "$srcdir"/simple_logging
  git config submodule.deps/ada-toml.url "$srcdir"/ada-toml
  git config submodule.deps/gnatcoll-core.url "$srcdir"/gnatcoll-core
  git config submodule.deps/ansi-ada.url "$srcdir"/ansi-ada
  git config submodule.deps/uri-ada.url "$srcdir"/uri-ada
  git config submodule.deps/minirest.url "$srcdir"/minirest
  git config submodule.deps/spdx_ada.url "$srcdir"/spdx_ada
  git config submodule.test/fixtures/crates/libhello_git.url "$srcdir"/libhello
  git submodule update
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  gprbuild -j0 -P alr_env
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  gprinstall -P alr_env -p --prefix="$pkgdir/usr"
}

# vim:set ts=2 sw=2 et: