summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndrew Sun2019-01-12 20:02:41 -0500
committerAndrew Sun2019-01-12 20:02:41 -0500
commit75742b71840ec9fa79f4992d26114a4b4d3edaf2 (patch)
treec42e6d8b33e5db02be15df37f3ae50dbbc096d8e /PKGBUILD
parent05233cbf4dfd40263e9bb22996430f6b856d2bd3 (diff)
downloadaur-mingw-w64-ncurses.tar.gz
ncurses: use stable version and some cosmetic changes
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD55
1 files changed, 27 insertions, 28 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a09501f604f..6e7aab376e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
# Maintainer: Andrew Sun <adsun701@gmail.com>
pkgname=mingw-w64-ncurses
-_base_ver=6.1
-_date_rev=20180908
-pkgver=${_base_ver}.${_date_rev}
+pkgver=6.1
+epoch=1
pkgrel=1
pkgdesc="System V Release 4.0 curses emulation library (mingw-w64)"
arch=('any')
@@ -12,41 +11,41 @@ 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=('3b3bbfadd7ef719a0082788132cff8cb'
- 'b669861903d0699b6535b7c6e028880d')
+source=("ncurses-${pkgver}.tar.gz"::"https://ftp.gnu.org/pub/gnu/ncurses/ncurses-${pkgver}.tar.gz"
+ "001-use-libsystre.patch")
+sha256sums=('aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17'
+ 'eb28949297a4c1eda67da49cfbed1d60f181b83101a0b3715552a4564bd90ff3')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
- cd "${srcdir}/ncurses-${_base_ver}-${_date_rev}"
+ cd "${srcdir}/ncurses-${pkgver}"
patch -Np1 -i "${srcdir}/001-use-libsystre.patch"
}
build() {
- cd "${srcdir}/ncurses-${_base_ver}-${_date_rev}"
+ cd "${srcdir}/ncurses-${pkgver}"
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
+ --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
@@ -54,7 +53,7 @@ build() {
package() {
for _arch in ${_architectures}; do
- cd "${srcdir}/ncurses-${_base_ver}-${_date_rev}/build-${_arch}"
+ cd "${srcdir}/ncurses-${pkgver}/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