summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndrew Sun2017-11-12 21:15:31 +0000
committerAndrew Sun2017-11-12 21:15:31 +0000
commita8de0b298433101ea23528872801f46fa31a9c24 (patch)
tree8d3a6d9a10b6f887055189b10e41f6133f1cb50b /PKGBUILD
downloadaur-a8de0b298433101ea23528872801f46fa31a9c24.tar.gz
add mingw-w64-ncurses (version 6.0.20170916)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD63
1 files changed, 63 insertions, 0 deletions
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
+}
+