Files
MINGW-packages/mingw-w64-python-ordered-set/PKGBUILD
2023-09-17 21:57:36 +02:00

44 lines
1.5 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=ordered-set
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=4.1.0
pkgrel=3
pkgdesc='An OrderedSet is a mutable data structure that is a hybrid of a list and a set(mingw-w64)'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
msys2_references=(
'pypi: ordered-set'
)
url='https://github.com/LuminosoInsight/ordered-set'
license=('MIT')
depends=("${MINGW_PACKAGE_PREFIX}-python")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest")
source=(https://files.pythonhosted.org/packages/source/o/${_realname}/${_realname}-${pkgver}.tar.gz)
sha256sums=('694a8e44c87657c59292ede72891eb91d34131f6531463aab3009191c77364a8')
prepare() {
rm -rf "python-build-${CARCH}" | true
cp -r ${_realname}-${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 MIT-LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}