diff options
author | Alexander Nicholi | 2021-02-04 09:27:07 -0500 |
---|---|---|
committer | Alexander Nicholi | 2021-02-04 09:27:07 -0500 |
commit | 643503b8643bdb75c1a9823077cc81f7e33ead40 (patch) | |
tree | 505a418fd6a3a5a152c6807d9ba59dad0bd9ddb5 /PKGBUILD | |
parent | 1e2cb10e10c640481e1f1ee5946cbb97397e4eb6 (diff) | |
download | aur-643503b8643bdb75c1a9823077cc81f7e33ead40.tar.gz |
update and bigfixes
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 94 |
1 files changed, 72 insertions, 22 deletions
@@ -1,43 +1,93 @@ # Maintainer: Alexander Nicholi <me@nicholatian.com> pkgname=mingw-w64-unilib -pkgver=1.2.1 +pkgver=1.3.5 pkgrel=1 pkgdesc='unilib, the ANSI C support library (MinGW-W64)' arch=('any') url="https://github.com/aquefir/{$pkgname#mingw-w64-}" license=('BSD') -makedepends=(mingw-w64-gcc) +makedepends=(mingw-w64-gcc 'slick>=1.3.1') depends=(mingw-w64-crt) options=(!libtool !buildflags) provides=("$pkgname") conflicts=("$pkgname") -_symver=1.1.0 -source=("https://github.com/aquefir/${pkgname#mingw-w64-}/releases/download/v$pkgver/${pkgname#mingw-w64-}-$pkgver.tar.bz2") +_symver=1.1.2 source=("https://github.com/aquefir/${pkgname#mingw-w64-}/archive/v${_symver}-$pkgver.tar.gz") -sha1sums=('2f95b63cd63161bcfb11bd5e238978ad4ff02c09') +sha1sums=('47f300471b36dfbddf1bb48103d3bbcfa6072782') -_subprojects='arr chkmath decl endian err himem log str' +_subprojects='arr chkmath decl endian err futils himem log str mt19937' + +prepare() { + cp -rp "$srcdir/${pkgname#mingw-w64-}-${_symver}-$pkgver" "$srcdir/win32" + mv "${pkgname#mingw-w64-}-${_symver}-$pkgver" "$srcdir/win64" +} build() { - cd "$srcdir/${pkgname#mingw-w64-}-${_symver}-$pkgver" + cd "$srcdir/win64" + + if [ "$(uname -s)" = 'Darwin' ]; then + _make=gmake + _cores=$(($(sysctl -n hw.ncpu) * 2)) + else + _make=make + _cores=$(($(nproc) * 2)) + fi - for _subproj in ${_subprojects}; do - cd "${_subproj}" - make -j$(($(nproc) * 2)) release TP=Win64 - cd .. - done + for _subproj in ${_subprojects}; do + cd "${_subproj}" + ${_make} -j${_cores} release TP=WIN64 + cd .. + done + + cd "$srcdir/win32" + + # 32-bit Windows + for _subproj in ${_subprojects}; do + cd "${_subproj}" + ${_make} -j${_cores} release TP=Win32 + cd .. + done } package() { - cd "$srcdir/${pkgname#mingw-w64-}-${_symver}-$pkgver" - - cd log - make -i install PREFIX="${pkgdir}/usr/agb-armv4t-eabi" TP=Win64 - cd .. - for _subproj in ${_subprojects}; do - cd "${_subproj}" - make install PREFIX="${pkgdir}/usr/agb-armv4t-eabi" TP=Win64 - cd .. - done + cd "$srcdir/win64" + + if [ "$(uname -s)" = 'Darwin' ]; then + _make=gmake + _prefix="${pkgdir}/usr/local/x86_64-w64-mingw32" + else + _make=make + _prefix="${pkgdir}/usr/x86_64-w64-mingw32" + fi + + mkdir -p "${_prefix}" + + cd log + ${_make} -i install PREFIX="${_prefix}" TP=WIN64 + cd .. + for _subproj in ${_subprojects}; do + cd "${_subproj}" + ${_make} install PREFIX="${_prefix}" TP=WIN64 + cd .. + done + + cd "$srcdir/win32" + + if [ "$(uname -s)" = 'Darwin' ]; then + _prefix="${pkgdir}/usr/local/i686-w64-mingw32" + else + _prefix="${pkgdir}/usr/i686-w64-mingw32" + fi + + mkdir -p "${_prefix}" + + cd log + ${_make} -i install PREFIX="${_prefix}" TP=WIN32 + cd .. + for _subproj in ${_subprojects}; do + cd "${_subproj}" + ${_make} install PREFIX="${_prefix}" TP=WIN32 + cd .. + done } |