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
| 1 | 1 | # | |
| 2 | 2 | # ksh93.cygport | |
| 3 | 3 | # | |
| 4 | 4 | # Copyright (C) 2024, Roland Mainz <roland.mainz@nrubsig.org> | |
| 5 | 5 | # | |
| 6 | 6 | # This file is free software; I give unlimited permission to copy and/or | |
| 7 | 7 | # distribute it, with or without modifications, as long as this notice is | |
| 8 | 8 | # preserved. | |
| 9 | 9 | # | |
| 10 | 10 | ||
| 11 | 11 | NAME=ksh | |
| 12 | 12 | LICENSE="Eclipse Public License - v 2.0" | |
| 13 | 13 | HOMEPAGE="https://github.com/ksh93/ksh" | |
| 14 | 14 | VERSION=1.0.8 | |
| 15 | 15 | RELEASE=0 | |
| 16 | 16 | ||
| 17 | 17 | PKG_NAMES="ksh ksh_devel" | |
| 18 | 18 | ||
| 19 | 19 | ksh_SUMMARY="The AT&T Korn Shell" | |
| 20 | 20 | ksh_DESCRIPTION="Original version of the AT&T AST Korn Shell 93." | |
| 21 | 21 | ksh_CATEGORY="Base Shells" | |
| 22 | 22 | ksh_CONTENTS=" \ | |
| 23 | 23 | bin/ksh.exe \ | |
| 24 | 24 | bin/ksh93.exe \ | |
| 25 | 25 | bin/rksh.exe \ | |
| 26 | 26 | bin/rksh93.exe \ | |
| 27 | 27 | etc/ksh.kshrc \ | |
| 28 | 28 | usr/share/doc/ksh \ | |
| 29 | 29 | usr/share/man/man1 \ | |
| 30 | 30 | " | |
| 31 | 31 | ||
| 32 | 32 | 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" | |
| 34 | 34 | ksh_devel_CATEGORY="Devel" | |
| 35 | 35 | ksh_devel_CONTENTS="usr/share/ksh \ | |
| 36 | 36 | bin/shcomp.exe \ | |
| 37 | 37 | " | |
| 38 | 38 | ||
| 39 | 39 | SRC_URI="https://github.com/ksh93/ksh/archive/refs/tags/v1.0.8.zip" | |
| 40 | 40 | ||
| 41 | 41 | PATCH_URI_BASE="" | |
| 42 | 42 | ||
| 43 | 43 | BUILD_REQUIRES=" \ | |
| 44 | 44 | bash \ | |
| 45 | 45 | coreutils \ | |
| 46 | 46 | bison \ | |
| 47 | 47 | gcc-g++ \ | |
| 48 | 48 | libiconv-devel \ | |
| 49 | 49 | libintl-devel \ | |
| 50 | 50 | libncurses-devel \ | |
| 51 | 51 | make \ | |
| 52 | 52 | sed \ | |
| 53 | 53 | texinfo \ | |
| 54 | 54 | " | |
| 55 | 55 | ||
| 56 | 56 | CPPFLAGS= | |
| 57 | 57 | CYGCONF_ARGS= | |
| 58 | 58 | DIFF_EXCLUDES= | |
| 59 | 59 | DOCS= | |
| 60 | 60 | ||
| 61 | 61 | src_compile() | |
| 62 | 62 | { | |
| 63 | 63 | cd ${S} | |
| 64 | + | ||
| 64 | 66 | sed -i -r 's/mkfifo.+?(-m [[:digit:]]+)/mkfifo /g' ./src/cmd/INIT/package.sh ./bin/package | |
| 67 | + | ||
| 65 | 69 | if [[ "$ARCH" == 'i686' ]] ; then | |
| 66 | 70 | export SHELL=/bin/bash HOSTTYPE="cygwin.i386"; \ | |
| 67 | 71 | /bin/bash ./bin/package make \ | |
| 68 | 72 | CC="/usr/bin/cc -std=gnu17" CCFLAGS="-Os -g" SHELL="$SHELL" HOSTTYPE="$HOSTTYPE" | |
| 69 | 73 | elif [[ "$ARCH" == 'x86_64' ]] ; then | |
| 70 | 74 | export SHELL=/bin/bash HOSTTYPE="cygwin.i386-64"; \ | |
| 71 | 75 | /bin/bash ./bin/package make \ | |
| 72 | 76 | CC="/usr/bin/cc -std=gnu17" CCFLAGS="-Os -g" SHELL="$SHELL" HOSTTYPE="$HOSTTYPE" | |
| 73 | 77 | else | |
| 74 | 78 | # unsupported arch! | |
| 75 | 79 | false | |
| 76 | 80 | fi | |
| 77 | 81 | ||
| 78 | - | printf '# /etc/ksh.kshrc+~/.kshrc are sourced only for interactive shells\n' >${S}/etc_ksh_kshrc | |
| 82 | + | # create ksh.kshrc | |
| 83 | + | { | |
| 79 | 87 | } | |
| 80 | 88 | ||
| 81 | 89 | # | |
| 82 | 90 | # install ksh, rksh, shcomp | |
| 83 | 91 | # | |
| 84 | 92 | src_install() | |
| 85 | 93 | { | |
| 88 | - | ls -lad ${D} | |
| 89 | - | ls -lad ${S} | |
| 90 | - | ||
| 91 | 94 | /usr/bin/install -D -m0755 ${S}/arch/cygwin.i386-64/bin/ksh.exe ${D}/bin/ksh.exe | |
| 92 | 95 | ln ${D}/bin/ksh.exe ${D}/bin/rksh.exe | |
| 93 | 96 | ln ${D}/bin/ksh.exe ${D}/bin/ksh93.exe | |
| 94 | 97 | ln ${D}/bin/ksh.exe ${D}/bin/rksh93.exe | |
| 95 | 98 | /usr/bin/install -D -m0755 ${S}/arch/cygwin.i386-64/bin/ksh.exe ${D}/bin/shcomp.exe | |
| 96 | 99 | /usr/bin/install -D -m0644 ${S}/arch/cygwin.i386-64/man/man1/sh.1 ${D}/usr/share/man/man1/ksh.1 | |
| 97 | 100 | /usr/bin/install -D -m0644 ${S}/etc_ksh_kshrc ${D}/etc/ksh.kshrc | |
| 98 | 101 | ||
| 99 | 102 | for i in ${S}/src/cmd/ksh93/tests/* ; do | |
| 100 | 103 | /usr/bin/install -D -m0644 $i ${D}/usr/share/ksh/tests/$(basename "$i") | |
| 101 | 104 | done | |
| 102 | 105 | } | |
| 103 | 106 | ||
| 104 | 107 | CYGWIN_MAINTAINER=Roland%20Mainz | |
| 105 | 108 | CYGWIN_MAINTAINER_EMAIL=roland.mainz@nrubsig.org | |
| 106 | 109 | ||
| 107 | 110 | CYGWIN_CO_MAINTAINER=Cedric%20Blancher | |
| 108 | 111 | CYGWIN_CO_MAINTAINER_EMAIL=cedric.blancher@gmail.com | |
| 109 | 112 | ||
| 110 | 113 | # 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.
nrubsig.kpaste.net RSS