From 7278c4f6ecd3933d511458ebc841c8456f1c10d6 Mon Sep 17 00:00:00 2001 From: Raed Rizqie Date: Tue, 19 Oct 2021 19:47:19 +0800 Subject: [PATCH 1/2] python-textdistance 4.2.1 --- mingw-w64-python-textdistance/PKGBUILD | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 mingw-w64-python-textdistance/PKGBUILD diff --git a/mingw-w64-python-textdistance/PKGBUILD b/mingw-w64-python-textdistance/PKGBUILD new file mode 100644 index 0000000000..39a492e210 --- /dev/null +++ b/mingw-w64-python-textdistance/PKGBUILD @@ -0,0 +1,38 @@ +_realname=textdistance +pkgbase=mingw-w64-python-${_realname} +pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname} +pkgver=4.2.1 +pkgrel=1 +pkgdesc='Compute distance between sequences (mingw-w64)' +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') +license=('MIT') +url='https://github.com/life4/textdistance' +#depends=( +# ${MINGW_PACKAGE_PREFIX}-python-pywin32-ctypes) +makedepends=( + ${MINGW_PACKAGE_PREFIX}-python + ${MINGW_PACKAGE_PREFIX}-python-setuptools) +source=("https://github.com/life4/${_realname}/archive/v.${pkgver}.tar.gz") +sha256sums=('2f475938edbef7faee50deeb000c81877e1165c29ff091b7c871dbcd0a244ca4') + +prepare() { + cd "${srcdir}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-v.${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}" --optimize=1 --skip-build + + install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" +} From 038e24f6a0dfb96cacf31789f41e66abe39890e2 Mon Sep 17 00:00:00 2001 From: Raed Rizqie Date: Tue, 19 Oct 2021 21:40:34 +0800 Subject: [PATCH 2/2] Update PKGBUILD --- mingw-w64-python-textdistance/PKGBUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw-w64-python-textdistance/PKGBUILD b/mingw-w64-python-textdistance/PKGBUILD index 39a492e210..8c2024900a 100644 --- a/mingw-w64-python-textdistance/PKGBUILD +++ b/mingw-w64-python-textdistance/PKGBUILD @@ -1,3 +1,5 @@ +# Contributor: Raed Rizqie + _realname=textdistance pkgbase=mingw-w64-python-${_realname} pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname}