summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a81b2c392ec44f442c917fb26f0e4eabea545d16 (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
71
72
73
74
75
76
77
78
79
80
# Maintainer: Tim Lagnese <tim at inept tech>

pkgname=alire
pkgver=2.0.2
pkgrel=1
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=(unzip)
makedepends=(git gprbuild)
checkdepends=(python-e3-testsuite python-pexpect)
source=("$pkgname-$pkgver.tar.gz::https://github.com/alire-project/alire/archive/refs/tags/v$pkgver.tar.gz"
alire.patch
git+https://github.com/mosteo/aaa.git#commit=dff61d2615cc6332fa6205267bae19b4d044b9da
git+https://github.com/pmderodat/ada-toml.git#commit=da4e59c382ceb0de6733d571ecbab7ea4919b33d
git+https://github.com/mosteo/ajunitgen.git#commit=e5d01db5e7834d15c4066f0a8e33d780deae3cc9
git+https://github.com/mosteo/ansi-ada#commit=dc770a5a6cdaad8668c32b0cd4625a7d648f8ca2
git+https://github.com/alire-project/clic#commit=56bbdc008e16996b6f76e443fd0165a240de1b13
git+https://github.com/mosteo/dirty_booleans#commit=05c40d88ecfe109e575ec8b21dd6ffa2e61df1dc
git+https://github.com/mosteo/diskflags#commit=60729edf31816aca0036b13b2794c39a9bd0172e
git+https://github.com/alire-project/gnatcoll-core.git#commit=4e663b87a028252e7e074f054f8f453661397166
git+https://github.com/mosteo/minirest#commit=9a9c660f9c6f27f5ef75417e7fac7061dff14d78
git+https://github.com/mosteo/optional#commit=1aa0e20bf7cd010c4b59e6ab7cc4b089790b796e
git+https://github.com/alire-project/semantic_versioning.git#commit=4861e32bd8a2f0df038d3ecc9a72b6381e7a34cc
git+https://github.com/mosteo/si_units#commit=9329d2591b82440ccc859a53f1380ac07ea4194d
git+https://github.com/alire-project/simple_logging.git#commit=3505dc645f3eef6799a486aae223d37e88cfc4d5
git+https://github.com/Fabien-Chouteau/spdx_ada#commit=2df9b1182544359c751544e52e14c94830d99fa6
git+https://github.com/mosteo/stopwatch#commit=f607a63b714f09bbf6126de9851cbc21cf8666c9
git+https://github.com/mosteo/toml_slicer#commit=3e5cbdb5673b85a1da6344a41764ef1cbafe3289
git+https://github.com/mosteo/umwi.git#commit=32496c15fe4fbb6cdab54ea11fbb0815549d2d48
git+https://github.com/mosteo/uri-ada.git#commit=02a0780d7757e9e79b3410c3a34960655cacea3d
git+https://github.com/alire-project/xmlezout.git#commit=1fcbd0b9303d044d8f09a8ef652afa8c0400ee8b
)
b2sums=('643bac6ae6527530c65254881f456f70e1590105a7c38188be1496014cb3bffad327cb1170ead5f0e3f5d8a371afc005bd896e9b9ac3a90d0b34698c079a70eb'
        'd1a75db6e4a26f2fc510c10e5d1205fa668a3b73b1137ae6b3b8ddfdde271e867f76342139251988d4198ed82a59ac5329d02e2d311a53c2831eb049885babfc'
        '8a900b1507ccf19b5405318b7265d2731d9b6cfb00c58b26bb6d94e9e1ee3e8817a3057f419e4cb0e79be85b326d00e0d272ce7c085aef017c92a2b969d5e1bc'
        '04153f28d513b403edf359632647786c53904450f24d20d30ee521ee76d7f1dc347041f7e186182bb8c867df4ddb6e1d01ff0e24179d000da23e08df304a7132'
        'c46d3b2dbfb4cf36fccca90f4c546a5121e4be34c5b8cda45e65d4e7296840789bb4c8979155861ca7e386ba318df84f81b9551653bbf1953b475b23a294597d'
        '0c463de6da532b8202ca9f7238b03935ce8fb109a4ddaf2939ef1de073db0e6f730475329f9c15db2d2d251bce4451bc9125e35dee07c4c203c342f5bbfe0c7b'
        '3786dcc29c882c72f6c80d177acd0ca7a1a4a1313ee51da708e8f1b01def8d524be885d91481c3f92d8b3adb5aa752a1fcc4a31b497e319984c3204e180467da'
        '123cb42b288de868bcd7e97057dfa851639e75976b4df0d6e668230ca89ae50afdf5f85cdb15c1fbfc2d921eef1a464d6ad106d97bc5deac0eca189d7ae65736'
        'ed3edbbcd9a8826428e77d4b3e23ebfd2f0dafefcfe129070725b0382a6d52349a31742c6beaa32c6d58caf117a36c6aa731e3930237909fb9cb5f2c8fbd1c4f'
        'ae22a179cafd88438d1b2f57be6f37515176bd00e3dbebdfdc587bcc81d5b7034b0090608f6a1e2786a4f2f1b35b9481c1f6a08e919d10cd951b9e482f2257f6'
        'a43e64fef4481de0293f69fc194b600fc64f7e2d6d70f61f2c643e1717db9d6c50cfac2a292b25e8d8cb1707c10b7c4bfa4a406292aee8526ad47985b69a34c9'
        'b56ba185a114361c3fd3f934f836d3c15d0c59bcef4202ef6244214f0f4e53cb1a48dec028fa5ce60f042f5b397e94117a42d1f4830ad49ace13564365ba60ca'
        '883cf4a0dadd1d67a12f79a1d7ee51911dab048e509c6d2dbd915701d28156c72de5ff745c37acb2865f67f8d573de0e0207b4f4b86bd085f9c33ee622769458'
        '5cff57253260d011f014d4d82363d1d9f9288ab5630f63ed0ac9314381784cfe4ff1f4f1763e6f943cfadc944b58248fd9a1d4260ab4974d27d0bc13f4354769'
        '2582f1809fffe20899c57c947aebf439a2e9a99c269168c10f11a876b82ebb11ed09c71308fae895134c6a3510b319d099b67e474cba36eaa5b24678379472c5'
        'f75890082fbe661fd0a2a18f9734b825e9519d9030611aa2e3b246f2f0a25721d45dc7c550296d81eadd8387d4baf926fbbb7a6cb77a2dc9c35835eb6c013fc4'
        '196eb6045eeb4d1a538d1058883e1620f104c655c6cccaaaf66eebedd3e62a5980b1ed40e2b942608c60f02a92899390750a10553ff8b57986c7255b92b1c390'
        '8cd2b0179993098a5fd29ceb67be01a8c21d504cae5173565c1048fb4cc6df0e2510e7fc46bfc1cac7a30b4dbce717085713de5df3e5a8f56ca70232383dc094'
        'feb53f76a7225faa99b50fcae8cf9eb78875ab7eb55e74a6d827aed987517396dac666e7ac77a65f5a2f0be2a2e2617757fb65570b57571dbeefcd91d730f651'
        '9b8068065ffd94f04b1d39145621469524ce681a786bf0c33f079d8570b81436f0e13100e34bf4d2ddab96cf94c85f548fafcb930ca9198cfe7e276713abecc1'
        '178b0f0bae8f22a8ed8abe6012b306d7be6cc57ad52710196497d313b182d5ad888821e2da8145ea3d49fd1867ced2c85f23d5d31d179440070362a4552caee4')

prepare()
{
  # Get the submodules from the sources above
  patch --strip=1 < "$srcdir/alire.patch"
}

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

check() {
  cd "$srcdir/$pkgname-$pkgver/testsuite"
  ./run.py
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  gprinstall -P alr_env -p --prefix="$pkgdir/usr" -XALIRE_OS=linux
  install -D scripts/alr-completion.bash "$pkgdir/usr/share/bash-completion/completions/alr"
}

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