blob: 638c9b0955eae4330ff1e05119743e2de6364396 (
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
|
# Maintainer: Rod Kay <charlie5 on #ada at freenode.net>
# Contributor: Pierre-Marie de Rodat <pmderodat on #ada at freenode.net>
# Contributor: Earnestly <zibeon AT googlemail.com>
pkgname=xmlada
pkgver=2019
pkgrel=1
pkgdesc="An XML parser for Ada95"
arch=('i686' 'x86_64')
url="https://github.com/AdaCore/xmlada/"
license=('GPL3' 'custom')
depends=('gcc-ada')
makedepends=('gprbuild-bootstrap')
conflicts=("$pkgname-git")
source=('http://mirrors.cdn.adacore.com/art/5cdf916831e87a8f1d4250b5'
'expose-cargs-and-largs-makefile.patch'
'COPYING.RUNTIME')
sha1sums=('ce0b67754f149cd230ba842effeff0ab3033ed0c'
'9b65cc99453fd15bdb7c49a32e6f76922ec904bd'
'44a4a599d98b4ec6d63051103de2fd177f43f67a')
prepare() {
cd "$srcdir/xmlada-2019-20190429-19B9D-src"
patch -Np1 -i "$srcdir/expose-cargs-and-largs-makefile.patch"
}
build() {
cd "$srcdir/xmlada-2019-20190429-19B9D-src"
./configure --prefix=/usr --libexecdir=/lib --enable-shared
# Make using a single job (-j1) to avoid the same file being compiled at the same time.
make -j1 GPRBUILD_OPTIONS=-R
}
package() {
cd "$srcdir/xmlada-2019-20190429-19B9D-src"
# Make one install at a time to avoid GPRinstall reading/writing to
# the same installed project files at the same time.
make -j1 prefix="$pkgdir/usr" install
# Install the custom license.
install -D -m644 \
"$srcdir/COPYING.RUNTIME" \
"$pkgdir/usr/share/licenses/${pkgname}/COPYING.RUNTIME"
}
|