blob: 8d8d098abb6fa10c2a2490710a9db8fa195a9ba1 (
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
|
pkgname=gprbuild
pkgver=2017
pkgrel=3
pkgdesc='Multi-language build system.'
url='http://www.adacore.com/gnatpro/toolsuite/gprbuild/'
arch=('i686' 'x86_64')
license=('GPL')
depends=('xmlada')
makedepends=('git' 'gprbuild-bootstrap')
# We provide gprbuild-bootstrap here so we can use this gprbuild to bootstrap
# itself and ada-xmlada.
provides=('gprbuild' 'gprbuild-bootstrap')
conflicts=('gprbuild' 'gprbuild-bootstrap')
source=('http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deecff7'
'expose-cargs-and-largs-makefile.patch')
sha1sums=('f956aa57c58c342a958332c8cd98e6481e9ce593'
'bda77367bc6985c3daf96929cccf5551a0544237')
prepare()
{
cd gprbuild-gpl-2017-src
patch -Np1 -i "$srcdir"/expose-cargs-and-largs-makefile.patch
# Not everyone is Debian
sed -i 's/libexec/lib/g' bootstrap.sh doinstall gprbuild.gpr \
share/gprconfig/compilers.xml \
share/gprconfig/linker.xml \
share/gprconfig/gnat.xml
}
build()
{
cd gprbuild-gpl-2017-src
export OS=UNIX
make prefix=/usr setup
make all
}
package()
{
cd gprbuild-gpl-2017-src
export OS=UNIX
make prefix="$pkgdir"/usr install
# Cleanup
rm -f -- "$pkgdir"/usr/doinstall
}
|