blob: 6a9e70c3d9b4926fef3df2bde52ea39237978fc5 (
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
|
# Maintainer: Rod Kay <rodakay5 at gmail dot com>
pkgname=gtkada
pkgdesc='Ada bindings for the Gtk+ library.'
pkgver=25.0w
pkgrel=1
epoch=1
url=https://github.com/AdaCore/gtkada
arch=(i686 x86_64)
license=(GPL3 custom)
depends=(gcc-ada
gtk3)
makedepends=(gprbuild-toolbox
python-sphinx
python-sphinx_rtd_theme
texlive-meta
gnatdoc)
source=(https://github.com/charlie5/archlinux-gnatstudio-support/raw/main/gnatstudio-sources-2024/$pkgname-$pkgver-20240505-16451-src.tar.gz
Makefile.in-patch
docs_Makefile-patch)
sha256sums=(8ef936617886625a9fd98316b0db7226521a0e6637b25d1d92bab99fac99ce7e
f525df1f7c319f1dc95ddafe1a73d961ce162c6171c97b0df3ae756122ca76d4
65b8f2d56ad688b369ae13446e9c4a839604ab6b1836aa85a385f59515d54f03)
_gtkada_src=gtkada-$pkgver-20240505-16451-src
prepare()
{
cd $srcdir/$_gtkada_src
patch -Np1 -i ../Makefile.in-patch
# Gnatdoc appears broken when trying to build reference manual docs. Disabling til fixed.
#
patch -Np0 -i ../docs_Makefile-patch
}
build()
{
cd $srcdir/$_gtkada_src
./configure --prefix=/usr
ADA_FLAGS="$CFLAGS"
ADA_FLAGS="${ADA_FLAGS//-Wformat}"
ADA_FLAGS="${ADA_FLAGS//-Werror=format-security}"
# Disable RPATH usage with -R.
# Only use a single job (-j1) to prevent the same file being compiled simultaneously
# which results in build artifacts being overwritten.
#
make -j1 GPRBUILD_SWITCHES="-R -cargs $ADA_FLAGS -largs $LDFLAGS -gargs"
make docs
}
package()
{
cd $srcdir/$_gtkada_src
make -j1 PROCESSORS=1 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
}
|