summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddde6e4af9a47a020a9fc312cd989abad573295f (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
81
82
83
84
85
# Maintainer: Rod Kay   <rodakay5 at gmail dot com>

pkgname=ada-web-server
pkgver=2021
pkgrel=2
pkgdesc="A complete embeddable web application framework for Ada."

arch=(i686 x86_64)
url=http://libre.adacore.com/tools/aws
license=(GPL)
groups=(gcc-ada)

depends=(gcc-ada openssl)
makedepends=(git gprbuild texlive-bin python-sphinx)

provides=(aws)

source=('git+https://github.com/AdaCore/aws#commit=5ddd74408d86363411714957baad72be76012b35'
        'git+https://github.com/AdaCore/templates-parser#commit=2ed90c02deb53d5e453e62a4105354a9497c9ecd')
sha1sums=('SKIP'
          'SKIP')


prepare()
{
    cd $srcdir/aws

    rmdir templates_parser
    ln -s "$srcdir/templates-parser" templates_parser
}


build() 
{
    cd $srcdir/aws/templates_parser

    make DEBUG=false prefix=/usr setup 
    make -j1 DEBUG=false build

    cd docs
    mkdir -p build
    make -j1 html latexpdf


    cd $srcdir/aws

    make prefix=/usr SOCKET=openssl setup
    make -j1 build

    cd $srcdir/aws/docs
    make -j1 html latexpdf
}


package() 
{
    cd $srcdir/aws/templates_parser
    make -j1 DEBUG=false DESTDIR="$pkgdir" install

    cd $srcdir/aws
    make -j1 DESTDIR="$pkgdir" install


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


   # Install the templates-parser license.
   install -D -m644     \
      "COPYING3"        \
      "$pkgdir/usr/share/licenses/templates-parser/COPYING3"

   # Install the templates-parser custom license.
   install -D -m644     \
      "COPYING.RUNTIME" \
      "$pkgdir/usr/share/licenses/templates-parser/COPYING.RUNTIME"

}