diff options
author | Andrew Sun | 2017-11-12 21:15:31 +0000 |
---|---|---|
committer | Andrew Sun | 2017-11-12 21:15:31 +0000 |
commit | a8de0b298433101ea23528872801f46fa31a9c24 (patch) | |
tree | 8d3a6d9a10b6f887055189b10e41f6133f1cb50b | |
download | aur-a8de0b298433101ea23528872801f46fa31a9c24.tar.gz |
add mingw-w64-ncurses (version 6.0.20170916)
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | 001-use-libsystre.patch | 14 | ||||
-rw-r--r-- | PKGBUILD | 63 |
3 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..40ab3fd125c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = mingw-w64-ncurses + pkgdesc = System V Release 4.0 curses emulation library (mingw-w64) + pkgver = 6.0.20170916 + pkgrel = 1 + url = https://www.gnu.org/software/ncurses/ + arch = any + license = MIT + makedepends = mingw-w64-configure + makedepends = mingw-w64-gcc + makedepends = mingw-w64-pkg-config + depends = mingw-w64-crt + depends = mingw-w64-libsystre + options = !strip + options = !buildflags + options = staticlibs + source = ncurses-6.0.20170916.tar.gz::https://invisible-mirror.net/archives/ncurses/current/ncurses-6.0-20170916.tgz + source = 001-use-libsystre.patch + md5sums = 20f410048cebb62f668b80333043da96 + md5sums = b669861903d0699b6535b7c6e028880d + +pkgname = mingw-w64-ncurses + diff --git a/001-use-libsystre.patch b/001-use-libsystre.patch new file mode 100644 index 00000000000..9acec64740d --- /dev/null +++ b/001-use-libsystre.patch @@ -0,0 +1,14 @@ +--- ncurses-5.9-20150321/configure.orig 2015-03-24 11:53:12.221966500 +0200 ++++ ncurses-5.9-20150321/configure 2015-03-24 11:53:18.504338200 +0200 +@@ -14915,6 +14915,11 @@ + if test `eval echo '${'$as_ac_Lib'}'` = yes; then + + cf_add_libs="-l$cf_regex_lib" ++case $host_os in #(vi ++mingw*) ++ cf_add_libs="$cf_add_libs -ltre -lintl -liconv" ++ ;; ++esac + # Filter out duplicates - this happens with badly-designed ".pc" files... + for cf_add_1lib in $LIBS + do diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..291e056d926 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Andrew Sun <adsun701@gmail.com> + +pkgname=mingw-w64-ncurses +_base_ver=6.0 +_date_rev=20170916 +pkgver=${_base_ver}.${_date_rev} +pkgrel=1 +pkgdesc="System V Release 4.0 curses emulation library (mingw-w64)" +arch=('any') +url="https://www.gnu.org/software/ncurses/" +license=('MIT') +makedepends=('mingw-w64-configure' 'mingw-w64-gcc' 'mingw-w64-pkg-config') +depends=('mingw-w64-crt' 'mingw-w64-libsystre') +options=('!strip' '!buildflags' 'staticlibs') +source=("ncurses-${pkgver}.tar.gz"::"https://invisible-mirror.net/archives/ncurses/current/ncurses-${_base_ver}-${_date_rev}.tgz" + 001-use-libsystre.patch) +md5sums=('20f410048cebb62f668b80333043da96' + 'b669861903d0699b6535b7c6e028880d') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd "${srcdir}/ncurses-${_base_ver}-${_date_rev}" + patch -Np1 -i "${srcdir}/001-use-libsystre.patch" +} + +build() { + cd "${srcdir}/ncurses-${_base_ver}-${_date_rev}" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure \ + --without-ada \ + --with-cxx \ + --without-shared \ + --without-pthread \ + --enable-pc-files \ + --disable-rpath \ + --enable-colorfgbg \ + --enable-ext-colors \ + --enable-ext-mouse \ + --disable-symlinks \ + --enable-warnings \ + --enable-assertions \ + --disable-home-terminfo \ + --enable-database \ + --enable-sp-funcs \ + --enable-term-driver \ + --enable-interop \ + --enable-widec + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/ncurses-${_base_ver}-${_date_rev}/build-${_arch}" + make DESTDIR="${pkgdir}" install + cp -R ${pkgdir}/usr/${_arch}/include/ncursesw ${pkgdir}/usr/${_arch}/include/ncurses + cp ${pkgdir}/usr/${_arch}/lib/libncursesw.a ${pkgdir}/usr/${_arch}/lib/libncurses.a + done +} + |