diff options
author | Patrick Northon | 2021-11-21 04:00:11 -0500 |
---|---|---|
committer | Patrick Northon | 2021-11-21 04:00:11 -0500 |
commit | 2bea6dec6dee4c4d6d7afff9eca65867696eae7a (patch) | |
tree | 5b27e255fb6f4ad43bcc821c457d03e8425e4354 /PKGBUILD | |
parent | 294379278ce15b345f5b6f9492e40438f0998360 (diff) | |
download | aur-2bea6dec6dee4c4d6d7afff9eca65867696eae7a.tar.gz |
Fix indentation.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 84 |
1 files changed, 41 insertions, 43 deletions
@@ -5,9 +5,9 @@ _pkgname=ncurses pkgname=mingw-w64-${_pkgname} pkgver=6.3 pkgrel=1 -pkgdesc="System V Release 4.0 curses emulation library (mingw-w64)" +pkgdesc='System V Release 4.0 curses emulation library (mingw-w64)' arch=('any') -url="https://www.gnu.org/software/ncurses/" +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-regex' 'mingw-w64-libiconv') @@ -15,51 +15,49 @@ options=('!strip' '!buildflags' 'staticlibs') source=("ncurses-${pkgver}.tar.gz"::"https://ftp.gnu.org/pub/gnu/ncurses/ncurses-${pkgver}.tar.gz") sha256sums=('97fc51ac2b085d4cde31ef4d2c3122c21abc217e9090a43a30fc5ec21684e059') -_architectures="i686-w64-mingw32 x86_64-w64-mingw32" +_architectures='i686-w64-mingw32 x86_64-w64-mingw32' build() { - cd "${srcdir}/ncurses-${pkgver}" - for _arch in ${_architectures}; do - mkdir -p build-${_arch} && pushd build-${_arch} - LIBS="$(${_arch}-pkg-config --libs regex) -liconv" ${_arch}-configure \ - --without-ada \ - --with-cxx \ - --with-cxx-shared \ - --with-shared \ - --with-normal \ - --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-manpages \ - --without-tests \ - --without-debug \ - --program-prefix= - make - popd - done + cd "${srcdir}/ncurses-${pkgver}" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + LIBS="$(${_arch}-pkg-config --libs regex) -liconv" ${_arch}-configure \ + --without-ada \ + --with-cxx \ + --with-cxx-shared \ + --with-shared \ + --with-normal \ + --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-manpages \ + --without-tests \ + --without-debug \ + --program-prefix= + make + popd + done } package() { - for _arch in ${_architectures}; do - cd "${srcdir}/ncurses-${pkgver}/build-${_arch}" - make DESTDIR="${pkgdir}" install - [[ -d "${pkgdir}/usr/lib" ]] && rm -rf "${pkgdir}/usr/lib" - #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 - find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \; + for _arch in ${_architectures}; do + cd "${srcdir}/ncurses-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + [[ -d "${pkgdir}/usr/lib" ]] && rm -rf "${pkgdir}/usr/lib" + find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \; find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; - find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g - done + find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g + done } |