This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
ncurses.yaml
65 lines (62 loc) · 2.03 KB
/
ncurses.yaml
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
package:
name: ncurses
version: 6.3
epoch: 1
description: "console display library"
target-architecture:
- all
copyright:
- paths:
- "*"
attestation: TODO
license: MIT
dependencies:
runtime:
environment:
contents:
repositories:
- https://packages.wolfi.dev/bootstrap/stage2
keyring:
- https://packages.wolfi.dev/bootstrap/stage2/wolfi-signing.rsa.pub
packages:
- busybox
- ca-certificates-bundle
- build-base
- ncurses
pipeline:
- uses: fetch
with:
# uri: https://invisible-mirror.net/archives/ncurses/current/ncurses-${{package.version}}-20220820.tgz
uri: https://distfiles.alpinelinux.org/distfiles/edge/ncurses-${{package.version}}-20220820.tgz
expected-sha256: 7b810b01f71609fd31107a0b7794d0940d3ecc10c98ba19e83749419ba0934b9
- name: Configure
runs: |
./configure \
--prefix=/usr \
--host=${{host.triplet.gnu}} \
--mandir=/usr/share/man \
--without-ada \
--without-tests \
--disable-termcap \
--disable-rpath-hack \
--disable-stripping \
--with-pkg-config-libdir=/usr/lib/pkgconfig \
--without-cxx-binding \
--with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo:/lib/terminfo:/usr/lib/terminfo" \
--enable-pc-files \
--with-shared \
--enable-widec \
--with-xterm-kbs=DEL
- uses: autoconf/make
- uses: autoconf/make-install
- name: 'Set up development files'
runs: |
for lib in ncurses ncurses++ form panel menu; do
ln -s ${lib}w.pc ${{targets.destdir}}/usr/lib/pkgconfig/${lib}.pc
ln -s lib${lib}w.a ${{targets.destdir}}/usr/lib/lib${lib}.a
echo "INPUT(-l${lib}w)" > ${{targets.destdir}}/usr/lib/lib${lib}.so
done
ln -s libncurses.a ${{targets.destdir}}/usr/lib/libcurses.a
ln -s libncurses.so ${{targets.destdir}}/usr/lib/libcurses.so
echo 'INPUT(-lncursesw)' > ${{targets.destdir}}/usr/lib/libcursesw.so
- uses: strip