tmux: build for cygwin
This commit is contained in:
parent
a64262041a
commit
120b901e04
@ -4,7 +4,7 @@ pkgname=tmux
|
||||
_base_ver=3.5
|
||||
_bugfix=.a
|
||||
pkgver=${_base_ver}${_bugfix}
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='A terminal multiplexer'
|
||||
url='https://tmux.github.io/'
|
||||
msys2_repository_url="https://github.com/tmux/tmux"
|
||||
@ -20,30 +20,28 @@ replaces=('tmux-git')
|
||||
depends=('ncurses' 'libevent')
|
||||
makedepends=('ncurses-devel' 'libevent-devel' 'autotools' 'gcc')
|
||||
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/tmux/tmux/archive/${_base_ver}${_bugfix/./}.tar.gz
|
||||
'msys-platform.patch'
|
||||
'no-check-dirs-permission.patch'
|
||||
'inherit-msystem-var.patch')
|
||||
|
||||
sha256sums=('49e68b41dec0bf408990160ee12fa29b06dee8f74c1f0b4b71c9d2a1477dd910'
|
||||
'cf7e0f642d43fc97f7c55be41c693cceab5c891f81fcee687e918075e55cd533'
|
||||
'31f3c9f1b98a97788edca46fb7a0ba2b5328758f014d445096561c8466540c5d'
|
||||
'aeaea034eeefe9598a56ebfabdf21cb991b2ac39d62dca9f857d24e5bc375366')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-${_base_ver}${_bugfix/./}"
|
||||
patch -p1 -i "${srcdir}"/msys-platform.patch
|
||||
patch -p0 -i "${srcdir}"/no-check-dirs-permission.patch
|
||||
patch -p0 -i "${srcdir}"/inherit-msystem-var.patch
|
||||
|
||||
cp osdep-cygwin.c osdep-msys.c
|
||||
|
||||
#msg2 "Running autogen.sh"
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${_base_ver}${_bugfix/./}"
|
||||
|
||||
local CYGWIN_CHOST="${CHOST/-msys/-cygwin}"
|
||||
./configure \
|
||||
--build=${CYGWIN_CHOST} \
|
||||
--enable-sixel \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
--- tmux-git/configure.ac.orig 2014-08-01 09:02:43.557200000 +0400
|
||||
+++ tmux-git/configure.ac 2014-08-01 09:03:03.306800000 +0400
|
||||
@@ -504,6 +504,10 @@
|
||||
AC_MSG_RESULT(cygwin)
|
||||
PLATFORM=cygwin
|
||||
;;
|
||||
+ *msys*)
|
||||
+ AC_MSG_RESULT(msys)
|
||||
+ PLATFORM=msys
|
||||
+ ;;
|
||||
*)
|
||||
AC_MSG_RESULT(unknown)
|
||||
PLATFORM=unknown
|
||||
Loading…
x
Reference in New Issue
Block a user