blob: be8975b4f8d3414fc511683bdea67b0907f3b08a (
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
|
# Contributor: Rod Kay <charlie5 on #ada at irc.libera.chat>
pkgname=adacurses
pkgver=20240427
pkgrel=1
pkgdesc="An Ada binding to the 'ncurses' C library."
arch=(i686 x86_64)
url=https://invisible-island.net/ncurses/ncurses-Ada95.html
license=(MIT)
makedepends=(gcc-ada)
source=(https://invisible-mirror.net/archives/AdaCurses/current/AdaCurses-$pkgver.tgz
adacurses.gpr.in)
sha256sums=(573ba82dd80f66469064dfcbbfcb2262be1a7730efa71f6542204790a2779e72
3d722aac3df43e5baad8ee1054de86a4d3c41b234efdff97ae2bac0ee22e3b4a)
PREFIX=/usr
prepare()
{
cd $srcdir/AdaCurses-$pkgver
sed -e '/(INSTALL_PROG)/d' \
-e 's/@ADAGEN_LDFLAGS@//' \
-i \
gen/Makefile.in >> gen/Makefile.in
}
build()
{
cd $srcdir/AdaCurses-$pkgver
./configure --prefix=${PREFIX} \
--with-install-prefix="$pkgdir" \
--with-ada-include=${PREFIX}/include/adacurses \
--with-ada-objects=${PREFIX}/lib/adacurses \
--libdir=${PREFIX}/lib/adacurses \
--enable-widec
make -j1
}
package()
{
cd $srcdir/AdaCurses-$pkgver
export DESTDIR=$pkgdir
make install
mkdir -p "${pkgdir}${PREFIX}/share/gpr"
sed "s|@PREFIX@|${PREFIX}|g" \
"$srcdir/adacurses.gpr.in" \
> "${pkgdir}${PREFIX}/share/gpr/adacurses.gpr"
# Install the license.
#
install -D -m644 \
"COPYING" \
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
|