-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
41 lines (37 loc) · 919 Bytes
/
template
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
# Template file for 'ksh'
pkgname=ksh
reverts="2020.0.0_1"
version=1.0.8
revision=1
short_desc="AT&T's Korn shell (community branch ksh93u+m)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="EPL-1.0"
homepage="https://github.com/ksh93/ksh"
distfiles="https://github.com/ksh93/ksh/archive/v${version}.tar.gz"
checksum=b46565045d0eb376d3e6448be6dbc214af454efc405d527f92cb81c244106c8e
nocross=yes
register_shell="/bin/ksh"
alternatives="
ksh:ksh:/usr/bin/ksh93
ksh:ksh.1:/usr/share/man/man1/ksh93.1
"
build_options="static"
if [ "$build_option_static" ]; then
LDFLAGS+=" -static"
fi
do_build() {
bin/package make CCFLAGS="$CFLAGS" NPROC="$XBPS_MAKEJOBS"
}
do_check() {
# run inside own pty
script -qfc bin/shtests /dev/null
}
do_install() {
vlicense LICENSE.md LICENSE
cd arch/*/
vbin bin/ksh ksh93
vbin bin/shcomp
vmkdir usr/share/ksh
vcopy fun usr/share/ksh/functions
vman man/man1/sh.1 ksh93.1
}