pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS

Difference between
modified post e32f21 by Anonymous on Mon 5th Feb 2024 02:41
original post e6613bf by Anonymous on Sun 4th Feb 2024 14:28
Download diff
Show old version | new version | both versions

    
11
#
22
# ksh93.cygport
33
#
44
# Copyright (C) 2024, Roland Mainz <roland.mainz@nrubsig.org>
55
#
66
# This file is free software; I give unlimited permission to copy and/or
77
# distribute it, with or without modifications, as long as this notice is
88
# preserved.
99
#
1010
1111
NAME=ksh
1212
LICENSE="Eclipse Public License - v 2.0"
1313
HOMEPAGE="https://github.com/ksh93/ksh"
1414
VERSION=1.0.8
1515
RELEASE=0
1616
1717
PKG_NAMES="ksh ksh_devel"
1818
1919
ksh_SUMMARY="The AT&T Korn Shell"
2020
ksh_DESCRIPTION="Original version of the AT&T AST Korn Shell 93."
2121
ksh_CATEGORY="Base Shells"
2222
ksh_CONTENTS=" \
2323
                bin/ksh.exe \
2424
                bin/ksh93.exe \
2525
                bin/rksh.exe \
2626
                bin/rksh93.exe \
2727
                etc/ksh.kshrc \
2828
                usr/share/doc/ksh \
2929
                usr/share/man/man1 \
3030
"
3131
3232
ksh_devel_SUMMARY="Development files for AT&T ksh"
33-
ksh_devel_DESCRIPTION="This package contains development headers for AT&T ksh"
33+
ksh_devel_DESCRIPTION="This package contains development tools and scripts for AT&T ksh"
3434
ksh_devel_CATEGORY="Devel"
3535
ksh_devel_CONTENTS="usr/share/ksh \
3636
	bin/shcomp.exe \
3737
"
3838
3939
SRC_URI="https://github.com/ksh93/ksh/archive/refs/tags/v1.0.8.zip"
4040
4141
PATCH_URI_BASE=""
4242
4343
BUILD_REQUIRES=" \
4444
    bash \
4545
    coreutils \
4646
    bison \
4747
    gcc-g++ \
4848
    libiconv-devel \
4949
    libintl-devel \
5050
    libncurses-devel \
5151
    make \
5252
    sed \
5353
    texinfo \
5454
"
5555
5656
CPPFLAGS=
5757
CYGCONF_ARGS=
5858
DIFF_EXCLUDES=
5959
DOCS=
6060
6161
src_compile()
6262
{
6363
    cd ${S}
64+
6466
    sed -i -r 's/mkfifo.+?(-m [[:digit:]]+)/mkfifo /g' ./src/cmd/INIT/package.sh ./bin/package
67+
6569
    if [[ "$ARCH" == 'i686' ]] ; then
6670
        export SHELL=/bin/bash HOSTTYPE="cygwin.i386"; \
6771
            /bin/bash ./bin/package make \
6872
                CC="/usr/bin/cc -std=gnu17" CCFLAGS="-Os -g" SHELL="$SHELL" HOSTTYPE="$HOSTTYPE"
6973
    elif [[ "$ARCH" == 'x86_64' ]] ; then
7074
        export SHELL=/bin/bash HOSTTYPE="cygwin.i386-64"; \
7175
            /bin/bash ./bin/package make \
7276
                CC="/usr/bin/cc -std=gnu17" CCFLAGS="-Os -g" SHELL="$SHELL" HOSTTYPE="$HOSTTYPE"
7377
    else
7478
        # unsupported arch!
7579
        false
7680
    fi
7781
78-
    printf '# /etc/ksh.kshrc+~/.kshrc are sourced only for interactive shells\n' >${S}/etc_ksh_kshrc
82+
	# create ksh.kshrc
83+
	{
7987
}
8088
8189
#
8290
# install ksh, rksh, shcomp
8391
#
8492
src_install()
8593
{
88-
	ls -lad ${D}
89-
	ls -lad ${S}
90-
9194
	/usr/bin/install -D -m0755 ${S}/arch/cygwin.i386-64/bin/ksh.exe ${D}/bin/ksh.exe
9295
	ln ${D}/bin/ksh.exe ${D}/bin/rksh.exe
9396
	ln ${D}/bin/ksh.exe ${D}/bin/ksh93.exe
9497
	ln ${D}/bin/ksh.exe ${D}/bin/rksh93.exe
9598
	/usr/bin/install -D -m0755 ${S}/arch/cygwin.i386-64/bin/ksh.exe ${D}/bin/shcomp.exe
9699
	/usr/bin/install -D -m0644 ${S}/arch/cygwin.i386-64/man/man1/sh.1 ${D}/usr/share/man/man1/ksh.1
97100
	/usr/bin/install -D -m0644 ${S}/etc_ksh_kshrc ${D}/etc/ksh.kshrc
98101
99102
	for i in ${S}/src/cmd/ksh93/tests/* ; do
100103
		/usr/bin/install -D -m0644 $i ${D}/usr/share/ksh/tests/$(basename "$i")
101104
	done
102105
}
103106
104107
CYGWIN_MAINTAINER=Roland%20Mainz
105108
CYGWIN_MAINTAINER_EMAIL=roland.mainz@nrubsig.org
106109
107110
CYGWIN_CO_MAINTAINER=Cedric%20Blancher
108111
CYGWIN_CO_MAINTAINER_EMAIL=cedric.blancher@gmail.com
109112
110113
# EOF.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at