Skip to content

Commit

Permalink
expect: build for cygwin
Browse files Browse the repository at this point in the history
I'm not quite sure about the config.guess/sub removals,
but the autotools and build output are the same without them.
  • Loading branch information
lazka committed Feb 2, 2025
1 parent 56109d4 commit 6359bc6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3,277 deletions.
11 changes: 0 additions & 11 deletions expect/5.45-msysize.patch

This file was deleted.

20 changes: 7 additions & 13 deletions expect/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

pkgname=expect
pkgver=5.45.4
pkgrel=5
pkgrel=6
pkgdesc="A tool for automating interactive applications"
arch=('i686' 'x86_64')
url="https://www.nist.gov/el/msid/expect.cfm"
Expand All @@ -15,28 +15,22 @@ license=('custom')
depends=('tcl')
makedepends=('autotools' 'gcc' 'tcl-devel')
source=(https://downloads.sourceforge.net/project/expect/Expect/${pkgver}/expect${pkgver}.tar.gz
config.guess
config.sub
5.45-openpty.patch
5.45-msysize.patch)
5.45-openpty.patch)
sha256sums=('49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34'
'5744cab7fda627ef53dbd0d8cb1fa08b30d3702e01a621e028c5a12deee7c21c'
'6ef568e79ee95214ecb8b187bf14f168bd0889575e922e5e866c455186cfb063'
'51767a9781b8844280265b290ac894fda176b7b92dad9b868f07b4e83b478207'
'4f0bd47194289969877b5c75f72e99db8120c430a063c99b1465179ac8cbb7b4')
'51767a9781b8844280265b290ac894fda176b7b92dad9b868f07b4e83b478207')

prepare() {
cd ${srcdir}/expect${pkgver}
patch -p2 -i ${srcdir}/5.45-openpty.patch
patch -p1 -i ${srcdir}/5.45-msysize.patch
cp ${srcdir}/config.guess tclconfig/config.guess
cp ${srcdir}/config.sub tclconfig/config.sub

autoreconf -vfi
}

build() {
cd ${srcdir}/expect${pkgver}
./configure --prefix=/usr --mandir=/usr/share/man
export MSYSTEM=CYGWIN
local CYGWIN_CHOST="${CHOST/-msys/-cygwin}"
./configure --build=${CYGWIN_CHOST} --prefix=/usr --mandir=/usr/share/man
make SHLIB_LD='$(CC) -shared -Wl,--out-implib,[email protected]'
}

Expand Down
Loading

0 comments on commit 6359bc6

Please sign in to comment.