Merge pull request #6 from msys2/master

Sync with upstream
This commit is contained in:
Andy Tao
2020-07-31 10:11:05 +08:00
committed by GitHub
16 changed files with 323 additions and 53 deletions

View File

@@ -2,7 +2,7 @@
_realname=cego
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2.45.16
pkgver=2.45.17
pkgrel=1
pkgdesc="Cego database system (mingw-w64)"
arch=('any')
@@ -15,7 +15,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-readline"
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
sha256sums=('31168d3e6c5b30693c5d7a412ac25a8604c1fcead9e7250ceb6cfd91bf97170b')
sha256sums=('98bce71526625817ca8ea0f1e01ee3e2da15c44ecac98bc4f693d0165cb760a3')
prepare() {
cd $srcdir/${_realname}-${pkgver}

View File

@@ -5,7 +5,7 @@
_realname=fmt
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=7.0.1
pkgver=7.0.2
pkgrel=1
pkgdesc="A small, safe and fast formatting library for C++ (mingw-w64)"
arch=('any')
@@ -16,7 +16,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
options=('staticlibs')
source=("${_realname}-${pkgver}.tar.gz::https://github.com/fmtlib/${_realname}/archive/${pkgver}.tar.gz")
sha256sums=('ac335a4ca6beaebec4ddb2bc35b9ae960b576f3b64a410ff2c379780f0cd4948')
sha256sums=('7697e022f9cdc4f90b5e0a409643faa2cde0a6312f85e575c8388a1913374de5')
build() {
# Shared Build

View File

@@ -0,0 +1,72 @@
From aae860fe3e9f25526a40734a01fa6eadefbe26e6 Mon Sep 17 00:00:00 2001
From: Philip Zander <philip.zander@gmail.com>
Date: Tue, 28 Jul 2020 02:31:52 +0200
Subject: [PATCH] Change `__declspec(dllexport)` to `extern
__declspec(dllexport)`
As of 28 July 2020, building on MSYS2 fails with "multiple definition"
errors unless exported variables are explicitly marked as "extern".
Closes #2958
---
gdk/gdktypes.h | 2 +-
gtk/gtkdebug.h | 2 +-
gtk/gtkmain.h | 2 +-
gtk/gtktexttypes.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h
index eed31243ba..c72b20b92e 100644
--- a/gdk/gdktypes.h
+++ b/gdk/gdktypes.h
@@ -39,7 +39,7 @@
#ifdef G_OS_WIN32
# ifdef GDK_COMPILATION
-# define GDKVAR __declspec(dllexport)
+# define GDKVAR extern __declspec(dllexport)
# else
# define GDKVAR extern __declspec(dllimport)
# endif
diff --git a/gtk/gtkdebug.h b/gtk/gtkdebug.h
index 05964f8dbe..623750301d 100644
--- a/gtk/gtkdebug.h
+++ b/gtk/gtkdebug.h
@@ -64,7 +64,7 @@ typedef enum {
#ifdef G_OS_WIN32
# ifdef GTK_COMPILATION
-# define GTKVAR __declspec(dllexport)
+# define GTKVAR extern __declspec(dllexport)
# else
# define GTKVAR extern __declspec(dllimport)
# endif
diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h
index 02a1daea9e..2f057e5478 100644
--- a/gtk/gtkmain.h
+++ b/gtk/gtkmain.h
@@ -67,7 +67,7 @@ typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget,
*/
#ifdef G_PLATFORM_WIN32
#ifdef GTK_COMPILATION
-#define GTKMAIN_C_VAR __declspec(dllexport)
+#define GTKMAIN_C_VAR extern __declspec(dllexport)
#else
#define GTKMAIN_C_VAR extern __declspec(dllimport)
#endif
diff --git a/gtk/gtktexttypes.h b/gtk/gtktexttypes.h
index c624aeaf3a..eb0db36e6d 100644
--- a/gtk/gtktexttypes.h
+++ b/gtk/gtktexttypes.h
@@ -44,7 +44,7 @@ typedef struct _GtkTextMarkBody GtkTextMarkBody;
#ifdef G_OS_WIN32
#ifdef GTK_COMPILATION
-#define VARIABLE __declspec(dllexport)
+#define VARIABLE extern __declspec(dllexport)
#else
#define VARIABLE extern __declspec(dllimport)
#endif
--
GitLab

View File

@@ -5,7 +5,7 @@ _realname=gtk2
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.24.32
pkgrel=4
pkgrel=5
pkgdesc="GTK+ is a multi-platform toolkit (v2) (mingw-w64)"
arch=('any')
url="https://www.gtk.org/"
@@ -43,7 +43,8 @@ source=("https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-${pkgver}.tar
0019_use_g_stat_and_gstatbuf.patch
0020-GDK-W32-Always-process-all-available-messages.patch
0021-GDK-W32-Ignore-autorepeated-key-presses-on-modifier-.patch
0022-icontheme-win32-detect-SVG-files-by-extension.patch)
0022-icontheme-win32-detect-SVG-files-by-extension.patch
0023-gcc10-fix.patch)
sha256sums=('b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e'
'b77a427df55a14182c10ad7e683b4d662df2846fcd38df2aa8918159d6be3ae2'
@@ -59,7 +60,8 @@ sha256sums=('b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e'
'2903708fda7b9f306a6a7b7b41518ce7a9ac7b9e622d4a1eed9ce30b945d5971'
'f984baf140fa325fab1bbd213d17f9cdcd5138b5ab9d76bd17c2434c4e4b2ac5'
'8955a689e9107c175a79766d4dd485941b3974b181e51f40ed2ae6028fd1b170'
'b0f18b85d2fd47057c266887848be1f1c0b6171a1ee6d52a33df7af6e0abb8b0')
'b0f18b85d2fd47057c266887848be1f1c0b6171a1ee6d52a33df7af6e0abb8b0'
'a3d347337b0aaa2b170b836c20070f758698949d0511b9a92528ab4926bdcfe6')
prepare() {
cd gtk+-${pkgver}
@@ -78,6 +80,8 @@ prepare() {
patch -p1 -i ${srcdir}/0021-GDK-W32-Ignore-autorepeated-key-presses-on-modifier-.patch
patch -p1 -i ${srcdir}/0022-icontheme-win32-detect-SVG-files-by-extension.patch
patch -p1 -i ${srcdir}/0023-gcc10-fix.patch
autoreconf -fi
rm "${srcdir}/gtk+-${pkgver}/gtk/gtk.def"
}

View File

@@ -1,40 +1,44 @@
--- libhandy-v0.0.13/src/hdy-swipe-group.c.orig 2020-01-10 10:17:03.213761700 +0300
+++ libhandy-v0.0.13/src/hdy-swipe-group.c 2020-01-10 10:17:06.099766700 +0300
@@ -102,7 +102,7 @@
diff --git a/src/hdy-swipe-group.c b/src/hdy-swipe-group.c
index 18b167ab5a260093bc0e6cd8fc4deef86211cb0f..2779a312e066f698635f151a8df6c57b6ac8b125 100644
--- a/src/hdy-swipe-group.c
+++ b/src/hdy-swipe-group.c
@@ -104,7 +104,7 @@ hdy_swipe_group_new (void)
static void
switch_child_cb (HdySwipeGroup *self,
- uint index,
+ guint index,
gint64 duration,
HdySwipeable *swipeable)
child_switched_cb (HdySwipeGroup *self,
- uint index,
+ guint index,
gint64 duration,
HdySwipeable *swipeable)
{
--- libhandy-v0.0.13/tests/test-paginator.c.orig 2020-01-10 10:17:28.563806200 +0300
+++ libhandy-v0.0.13/tests/test-paginator.c 2020-01-10 10:17:59.030659700 +0300
@@ -158,7 +158,7 @@
test_hdy_paginator_indicator_spacing (void)
diff --git a/tests/test-carousel.c b/tests/test-carousel.c
index 538ca6e1a8f9589ebf10d0099bfdb56349f0a357..25ccb3e68700612dc8ed5f0c3e4debb6e8cbdc8e 100644
--- a/tests/test-carousel.c
+++ b/tests/test-carousel.c
@@ -158,7 +158,7 @@ static void
test_hdy_carousel_indicator_spacing (void)
{
HdyPaginator *paginator = HDY_PAGINATOR (hdy_paginator_new ());
HdyCarousel *carousel = HDY_CAROUSEL (hdy_carousel_new ());
- uint spacing;
+ guint spacing;
notified = 0;
g_signal_connect (paginator, "notify::indicator-spacing", G_CALLBACK (notify_cb), NULL);
@@ -210,7 +210,7 @@
test_hdy_paginator_spacing (void)
g_signal_connect (carousel, "notify::indicator-spacing", G_CALLBACK (notify_cb), NULL);
@@ -210,7 +210,7 @@ static void
test_hdy_carousel_spacing (void)
{
HdyPaginator *paginator = HDY_PAGINATOR (hdy_paginator_new ());
HdyCarousel *carousel = HDY_CAROUSEL (hdy_carousel_new ());
- uint spacing;
+ guint spacing;
notified = 0;
g_signal_connect (paginator, "notify::spacing", G_CALLBACK (notify_cb), NULL);
@@ -236,7 +236,7 @@
test_hdy_paginator_animation_duration (void)
g_signal_connect (carousel, "notify::spacing", G_CALLBACK (notify_cb), NULL);
@@ -236,7 +236,7 @@ static void
test_hdy_carousel_animation_duration (void)
{
HdyPaginator *paginator = HDY_PAGINATOR (hdy_paginator_new ());
HdyCarousel *carousel = HDY_CAROUSEL (hdy_carousel_new ());
- uint duration;
+ guint duration;
notified = 0;
g_signal_connect (paginator, "notify::animation-duration", G_CALLBACK (notify_cb), NULL);
g_signal_connect (carousel, "notify::animation-duration", G_CALLBACK (notify_cb), NULL);

View File

@@ -3,11 +3,11 @@
_realname=libhandy
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.13
pkgver=0.84.0
pkgrel=1
pkgdesc="A library full of GTK+ widgets for mobile phones (mingw-w64)"
url="https://source.puri.sm/Librem5/libhandy"
license=("LGPL2.1")
url="https://gitlab.gnome.org/GNOME/libhandy"
license=("LGPL2.1+")
arch=('any')
depends=("${MINGW_PACKAGE_PREFIX}-gtk3")
makedepends=("${MINGW_PACKAGE_PREFIX}-meson"
@@ -15,13 +15,13 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-vala"
"${MINGW_PACKAGE_PREFIX}-gobject-introspection")
options=('strip' 'staticlibs' '!debug')
source=("https://source.puri.sm/Librem5/libhandy/-/archive/v${pkgver}/libhandy-v${pkgver}.tar.bz2"
source=("http://ftp.gnome.org/pub/GNOME/sources/libhandy/${pkgver:0:4}/libhandy-${pkgver}.tar.xz"
001-fix-types.patch)
sha256sums=('507f92e173a6ab9c07f612d2758de434f1feeb72ca4a9dd7de16d9a2b533d60b'
'd6aeaf23c740622f791679a5d9638b8da90ae2d04f71ecb7189086cd7aaafacf')
sha256sums=('c05c539f96f91cdf29a07320576c74909fcf77d216d7328e602fe16599f561aa'
'0d7833c87deaf5b25f6e1205fe54c1814a1cf91ab19f89b3cef1b96bac401d27')
prepare() {
cd libhandy-v${pkgver}
cd libhandy-${pkgver}
patch -p1 -i ${srcdir}/001-fix-types.patch
}
@@ -34,7 +34,7 @@ build() {
-Dexamples=false \
-Dgtk_doc=false \
-Dglade_catalog=disabled \
../"libhandy-v${pkgver}"
../"libhandy-${pkgver}"
${MINGW_PREFIX}/bin/ninja
}

View File

@@ -0,0 +1,52 @@
Copyright (c) 2013 Julien Pommier ( pommier@modartt.com )
Based on original fortran 77 code from FFTPACKv4 from NETLIB
(http://www.netlib.org/fftpack), authored by Dr Paul Swarztrauber
of NCAR, in 1985.
As confirmed by the NCAR fftpack software curators, the following
FFTPACKv5 license applies to FFTPACKv4 sources. My changes are
released under the same terms.
FFTPACK license:
http://www.cisl.ucar.edu/css/software/fftpack5/ftpk.html
Copyright (c) 2004 the University Corporation for Atmospheric
Research ("UCAR"). All rights reserved. Developed by NCAR's
Computational and Information Systems Laboratory, UCAR,
www.cisl.ucar.edu.
Redistribution and use of the Software in source and binary forms,
with or without modification, is permitted provided that the
following conditions are met:
- Neither the names of NCAR's Computational and Information Systems
Laboratory, the University Corporation for Atmospheric Research,
nor the names of its sponsors or contributors may be used to
endorse or promote products derived from this Software without
specific prior written permission.
- Redistributions of source code must retain the above copyright
notices, this list of conditions, and the disclaimer below.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions, and the disclaimer below in the
documentation and/or other materials provided with the
distribution.
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
SOFTWARE.
PFFFT : a Pretty Fast FFT.
This file is largerly based on the original FFTPACK implementation, modified in
order to take advantage of SIMD instructions of modern CPUs.

View File

@@ -4,11 +4,11 @@ _realname=libsoxr
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.1.3
pkgrel=1
pkgrel=2
pkgdesc="The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio (mingw-w64)"
arch=('any')
url="https://sourceforge.net/p/soxr/wiki/Home/"
license=("GPL")
license=("LGPL")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-cmake"
@@ -16,10 +16,12 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
source=("git+https://git.code.sf.net/p/soxr/code#commit=945b592b70470e29f917f4de89b4281fbbd540c0"
"0001-libsoxr-fix-pc-file-installation.patch"
"0002-libsoxr-fix-documentation-installation.patch")
"0002-libsoxr-fix-documentation-installation.patch"
"LICENSE-PFFFT")
sha256sums=('SKIP'
'f6715ef431510e34da2644eb05893e3c25804dc3e9bab2819786987b9f2e2b1f'
'7c16beb3898279db96b09b365c069071b371a1022f0baf12bb3da9d45d387fdf')
'7c16beb3898279db96b09b365c069071b371a1022f0baf12bb3da9d45d387fdf'
'a9f3d236f3c14a41a1293f176d4c7c46d85404403417fcb8df6d6c9707104e42')
prepare() {
cd "${srcdir}/code"
@@ -40,7 +42,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=ON \
-DWITH_AVFFT=ON \
-DWITH_AVFFT=OFF \
-DWITH_LSR_BINDINGS=ON \
-DWITH_OPENMP=ON \
-DWITH_PFFFT=ON \
@@ -60,7 +62,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DWITH_AVFFT=ON \
-DWITH_AVFFT=OFF \
-DWITH_LSR_BINDINGS=ON \
-DWITH_OPENMP=ON \
-DWITH_PFFFT=ON \
@@ -80,4 +82,6 @@ package() {
# License
install -Dm644 ${srcdir}/code/LICENCE ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE
install -Dm644 ${srcdir}/code/COPYING.LGPL ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/
install -Dm644 ${srcdir}/LICENSE-PFFFT ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/
}

View File

@@ -0,0 +1,11 @@
--- libzip-1.7.3.orig/CMakeLists.txt
+++ libzip-1.7.3/CMakeLists.txt
@@ -100,7 +100,7 @@
check_function_exists(_fdopen HAVE__FDOPEN)
check_function_exists(_fileno HAVE__FILENO)
check_function_exists(_setmode HAVE__SETMODE)
-check_function_exists(_snprintf HAVE__SNPRINTF)
+#check_function_exists(_snprintf HAVE__SNPRINTF)
check_function_exists(_strdup HAVE__STRDUP)
check_function_exists(_stricmp HAVE__STRICMP)
check_function_exists(_strtoi64 HAVE__STRTOI64)

View File

@@ -5,23 +5,27 @@
_realname=libzip
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.6.1
pkgrel=2
pkgver=1.7.3
pkgrel=1
pkgdesc="A C library for reading, creating, and modifying zip archives (mingw-w64)"
url="https://www.nih.at/libzip/index.html"
url="https://libzip.org"
license=('BSD')
arch=('any')
depends=("${MINGW_PACKAGE_PREFIX}-bzip2"
"${MINGW_PACKAGE_PREFIX}-gnutls"
"${MINGW_PACKAGE_PREFIX}-nettle"
"${MINGW_PACKAGE_PREFIX}-xz"
"${MINGW_PACKAGE_PREFIX}-zlib")
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-gcc")
options=('staticlibs' '!libtool')
source=("https://www.nih.at/${_realname}/${_realname}-${pkgver}.tar.xz")
sha256sums=('705dac7a671b3f440181481e607b0908129a9cf1ddfcba75d66436c0e7d33641')
source=("https://libzip.org/download/${_realname}-${pkgver}.tar.xz"
"0001-cmake-disable-_snprintf-check.patch")
sha512sums=('488866348a0c859f6f995c50e956bd51b4105278f07b63fe019cb44ab36c09ef958cc0684fd5444c474d83874b999e8ed1aa9b2da51b74caa37bbe7934b9c870'
'96401fa51efb23f9ee608e8db1ae0cb47ac5851ab8a94c68023ddd7b4b0e4694d0ff4f76dd00a864c78dc3b21759eee4513bf021a93e39919ea0ff00130f1116')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
patch -Nbp1 -i "${srcdir}/0001-cmake-disable-_snprintf-check.patch"
}
build() {
@@ -34,8 +38,10 @@ build() {
${MINGW_PREFIX}/bin/cmake.exe \
-G"MSYS Makefiles" \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
-DENABLE_COMMONCRYPTO=OFF \
-DENABLE_GNUTLS=ON \
-DENABLE_OPENSSL=OFF \
-DENABLE_MBEDTLS=OFF \
../${_realname}-${pkgver}
make
@@ -50,8 +56,10 @@ build() {
-G"MSYS Makefiles" \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
-DBUILD_SHARED_LIBS=OFF \
-DENABLE_COMMONCRYPTO=OFF \
-DENABLE_GNUTLS=ON \
-DENABLE_OPENSSL=OFF \
-DENABLE_MBEDTLS=OFF \
../${_realname}-${pkgver}
make

View File

@@ -0,0 +1,45 @@
# Maintainer: Konstantin Podsvirov <konstantin@podsvirov.pro>
_realname=feedgenerator
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=1.9.1
pkgrel=1
pkgdesc='Standalone version of django.utils.feedgenerator (mingw-w64)'
arch=('any')
url='https://pypi.org/project/feedgenerator/'
license=('GPL')
depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-pytz"
"${MINGW_PACKAGE_PREFIX}-python-six")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-nose")
source=("feedgenerator-${pkgver}.tar.gz"::"https://github.com/getpelican/feedgenerator/archive/${pkgver}.tar.gz")
sha256sums=('6bcf4035180f2045d38c3de5962ba0831041916beb62371e9df738fcf061e3a3')
prepare() {
cd "${srcdir}"
rm -rf "python-build-${CARCH}" | true
cp -r "feedgenerator-${pkgver}" "python-build-${CARCH}"
}
build() {
msg "Python build for ${CARCH}"
cd "${srcdir}/python-build-${CARCH}"
${MINGW_PREFIX}/bin/python setup.py build
}
check() {
cd "${srcdir}/python-build-${CARCH}"
PYTHONPATH="${srcdir}/python-build-${CARCH}/build/lib:${PYTHONPATH}" \
${MINGW_PREFIX}/bin/nosetests
}
package() {
cd "${srcdir}/python-build-${CARCH}"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1 --skip-build
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}
# vim: ts=2 sw=2 et:

View File

@@ -0,0 +1,42 @@
# Maintainer: Konstantin Podsvirov <konstantin@podsvirov.pro>
_realname=unidecode
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=1.1.1
pkgrel=1
pkgdesc='ASCII transliterations of Unicode text (mingw-w64)'
arch=('any')
url='https://github.com/avian2/unidecode'
license=('GPL')
depends=("${MINGW_PACKAGE_PREFIX}-python")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
source=("unidecode-unidecode-${pkgver}.tar.gz"::"https://github.com/avian2/unidecode/archive/unidecode-${pkgver}.tar.gz")
install=${_realname}-${CARCH}.install
sha256sums=('79a65293aacd2a7b9e956d71d49207883920950a8d352ad0b6211587993c892e')
prepare() {
cd "${srcdir}"
rm -rf "python-build-${CARCH}" | true
cp -r "unidecode-unidecode-${pkgver}" "python-build-${CARCH}"
}
build() {
msg "Python build for ${CARCH}"
cd "${srcdir}/python-build-${CARCH}"
${MINGW_PREFIX}/bin/python setup.py build
}
package() {
cd "${srcdir}/python-build-${CARCH}"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1 --skip-build
local PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX})
# fix python command in files
for _ff in ${pkgdir}${MINGW_PREFIX}/bin/*.py; do
sed -e "s|${PREFIX_WIN}|${MINGW_PREFIX}|g" -i ${_ff}
done
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}
# vim: ts=2 sw=2 et:

View File

@@ -0,0 +1,14 @@
post_install() {
cd mingw32
local _prefix=$(pwd -W)
cd -
local _it
for _it in unidecode; do
sed -e "s|/mingw32|${_prefix}|g" \
-i ${_prefix}/bin/${_it}-script.py
done
}
post_upgrade() {
post_install
}

View File

@@ -0,0 +1,14 @@
post_install() {
cd mingw64
local _prefix=$(pwd -W)
cd -
local _it
for _it in unidecode; do
sed -e "s|/mingw64|${_prefix}|g" \
-i ${_prefix}/bin/${_it}-script.py
done
}
post_upgrade() {
post_install
}

View File

@@ -3,7 +3,7 @@
_realname=vala
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.48.7
pkgver=0.48.8
pkgrel=1
pkgdesc="Compiler for the GObject type system (mingw-w64)"
arch=('any')
@@ -19,7 +19,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-glib2"
source=(https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.xz
001-change-pkg-config-invocations.mingw.patch
002-use_time_s_functions_on_windows.mingw.patch)
sha256sums=('28de33e28da24500cc1675c3a6ced1301c9a6a5e6dd06193569001f9ce9a5c53'
sha256sums=('c83a9b7292627bc259dae7cd414c813a48f285b4b2f4b574fa28e6af9a582ab4'
'c588a3a69097aae30ada1d543001d5029865b1dd1f46132d9e60d12e1833b325'
'1309ae50867b81ea5d170487b36443a41c8dfee202213198c980a133300d6f9a')

View File

@@ -3,9 +3,9 @@
_realname=xmake
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.3.5
pkgver=2.3.6
pkgrel=1
pkgdesc="A make-like build utility based on Lua (mingw-w64)"
pkgdesc="A cross-platform build utility based on Lua (mingw-w64)"
arch=('any')
url="https://github.com/xmake-io/xmake"
license=('Apache')
@@ -13,7 +13,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-ncurses"
"${MINGW_PACKAGE_PREFIX}-readline")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/xmake-io/${_realname}/releases/download/v${pkgver}/${_realname}-v${pkgver}.tar.gz")
sha256sums=('5be491fd023333225ab347dc209f18f453e61d52988ae84f485e1b2552a440d6')
sha256sums=('5d9b9dd8b357fab9e426a667a47381b5db54622cd2c5452584e4b960b410272d')
build() {
cd "$srcdir"