blob: f4f26373ae7bb782c8b7ef7879f82ba928adb69b (
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
|
# Maintainer: Pierre-Marie de Rodat <pmderodat on #ada at freenode.net>
# Contributor: Rod Kay <charlie5 on #ada at freenode.net>
pkgname=gprbuild-bootstrap-git
pkgver=r3152.ba7dba01
pkgrel=1
pkgdesc="Static GPRbuild to bootstrap XML/Ada and GPRbuild itself"
arch=('i686' 'x86_64')
url='https://github.com/AdaCore/gprbuild/'
license=('GPL3')
depends=('glibc')
makedepends=('git' 'gcc-ada')
provides=('gprbuild')
conflicts=('gprbuild')
source=('git+https://github.com/AdaCore/gprbuild.git'
'git+https://github.com/AdaCore/xmlada.git')
sha1sums=(SKIP SKIP)
pkgver() {
cd "$srcdir/gprbuild"
printf "r%s.%s" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/gprbuild"
# GPRbuild hard-codes references to /usr/libexec, but ArchLinux packages
# must use /usr/lib instead.
sed -i 's/libexec/lib/g' doinstall gprbuild.gpr \
share/gprconfig/compilers.xml \
share/gprconfig/linker.xml \
share/gprconfig/gnat.xml
}
build() {
cd "$srcdir/gprbuild"
export GNATMAKEFLAGS="-j$(nproc)"
export DESTDIR="$srcdir/bootstrap"
./bootstrap.sh \
--prefix=/usr \
--libexecdir=/lib \
--with-xmlada="$srcdir/xmlada"
}
package() {
cd "$srcdir/bootstrap"
cp -a --no-preserve=ownership -- "$srcdir/bootstrap/usr" "$pkgdir"
}
|