winpty-git: new package (WIP)
This commit is contained in:
47
winpty-git/0001-Added-Support-for-MSYS2.patch
Normal file
47
winpty-git/0001-Added-Support-for-MSYS2.patch
Normal file
@@ -0,0 +1,47 @@
|
||||
From af7fcf0c3b5bad57b7e80e5c1c9d0d376f3282af Mon Sep 17 00:00:00 2001
|
||||
From: martell <martellmalone@gmail.com>
|
||||
Date: Sat, 13 Sep 2014 21:32:08 +0100
|
||||
Subject: [PATCH] Added Support for MSYS2
|
||||
|
||||
---
|
||||
configure | 23 ++++++++++++++++++++++-
|
||||
1 file changed, 22 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 7df110d..65f21cb 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -79,8 +79,29 @@ case $(uname -s) in
|
||||
# msys-1.0.dll, but no gcc or stdc++ DLL.
|
||||
UNIX_LDFLAGS_STATIC_LIBSTDCXX=
|
||||
;;
|
||||
+ MSYS*)
|
||||
+ echo 'uname -s identifies a Msys2 environment.'
|
||||
+ IS_MSYS=1
|
||||
+ case $(uname -m) in
|
||||
+ i686)
|
||||
+ echo 'uname -m identifies a i686 environment.'
|
||||
+ UNIX_GPP=i686-pc-msys-g++
|
||||
+ MINGW_GPP="i686-pc-mingw32-g++ /mingw32/bin/i686-w64-mingw32-g++"
|
||||
+ ;;
|
||||
+ x86_64)
|
||||
+ echo 'uname -m identifies a x86_64 environment.'
|
||||
+ UNIX_GPP=x86_64-pc-msys-g++
|
||||
+ MINGW_GPP="x86_64-pc-mingw32-g++ /mingw64/bin/x86_64-w64-mingw32-g++"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ echo 'Error: uname -m did not match either i686 or x86_64.'
|
||||
+ exit 1
|
||||
+ ;;
|
||||
+ esac
|
||||
+ UNIX_LDFLAGS_STATIC_LIBSTDCXX=""
|
||||
+ ;;
|
||||
*)
|
||||
- echo 'Error: uname -s did not match either CYGWIN* or MINGW*.'
|
||||
+ echo 'Error: uname -s did not match either CYGWIN* MSYS* or MINGW*.'
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
--
|
||||
2.1.0
|
||||
|
||||
62
winpty-git/PKGBUILD
Normal file
62
winpty-git/PKGBUILD
Normal file
@@ -0,0 +1,62 @@
|
||||
# Maintainer: Martell Malone <martell malone at g mail dot com>
|
||||
|
||||
_realname=winpty
|
||||
pkgname="${_realname}-git"
|
||||
_ver_base=1.1.1
|
||||
pkgver=1.1.1.148.47a69d0
|
||||
pkgrel=1
|
||||
pkgdesc="A Windows software package providing an interface similar to a Unix pty-master for communicating with Windows console programs"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/rprichard/winpty"
|
||||
license=("MIT")
|
||||
makedepends=("gcc" "autoconf" "gperf" "bison" "flex" "wget" "tar" "patch" "make" "libtool" "automake" "xz")
|
||||
provides=("${_realname}")
|
||||
conflicts=("${_realname}")
|
||||
#depends=( "ncurses-devel" )
|
||||
options=('staticlibs' 'strip')
|
||||
|
||||
source=("${_realname}"::"git+https://github.com/rprichard/winpty.git"
|
||||
"0001-Added-Support-for-MSYS2.patch")
|
||||
# "0002-Use-CT_FindRelativePath-for-gcc-and-gmp.patch"
|
||||
# "0003-Modify-config-to-support-correct-Mingw64-Triplet-Nam.patch"
|
||||
# "0004-AC_SEARCH_LIBS-more-libs-for-build-on-MSYS2-Cygwin-M.patch"
|
||||
# "0005-Change-both-fs-case-sensitivity-Aborts-to-Log-Warns.patch"
|
||||
# "0006-CT_DoForceRmdir-added-support-for-MSYS-and-MINGW.patch")
|
||||
|
||||
md5sums=('SKIP'
|
||||
'SKIP')
|
||||
# 'SKIP'
|
||||
# 'SKIP'
|
||||
# 'SKIP'
|
||||
# 'SKIP'
|
||||
# 'SKIP')
|
||||
|
||||
#pkgver() {
|
||||
# cd "$srcdir/$_realname"
|
||||
# printf "%s.%s.%s" "$_ver_base" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
#}
|
||||
|
||||
prepare() {
|
||||
|
||||
cd "$srcdir/$_realname"
|
||||
|
||||
git am "$srcdir/0001-Added-Support-for-MSYS2.patch"
|
||||
#git am "$srcdir/0002-Use-CT_FindRelativePath-for-gcc-and-gmp.patch"
|
||||
#git am "$srcdir/0003-Modify-config-to-support-correct-Mingw64-Triplet-Nam.patch"
|
||||
#git am "$srcdir/0004-AC_SEARCH_LIBS-more-libs-for-build-on-MSYS2-Cygwin-M.patch"
|
||||
#git am "$srcdir/0005-Change-both-fs-case-sensitivity-Aborts-to-Log-Warns.patch"
|
||||
#git am "$srcdir/0006-CT_DoForceRmdir-added-support-for-MSYS-and-MINGW.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_realname"
|
||||
#./bootstrap
|
||||
./configure --build=${CHOST} \
|
||||
--prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_realname"
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
||||
Reference in New Issue
Block a user