python-keyring 23.2.1
This commit is contained in:
9
mingw-w64-python-keyring/001-add-version-string.patch
Normal file
9
mingw-w64-python-keyring/001-add-version-string.patch
Normal file
@@ -0,0 +1,9 @@
|
||||
--- keyring-23.2.1/setup.cfg.orig 2021-09-13 01:12:01 +0800
|
||||
+++ keyring-23.2.1/setup.cfg 2021-10-15 01:03:23 +0800
|
||||
@@ -1,5 +1,6 @@
|
||||
[metadata]
|
||||
name = keyring
|
||||
+version = 23.2.1
|
||||
author = Kang Zhang
|
||||
author_email = jobo.zh@gmail.com
|
||||
maintainer = Jason R. Coombs
|
||||
47
mingw-w64-python-keyring/PKGBUILD
Normal file
47
mingw-w64-python-keyring/PKGBUILD
Normal file
@@ -0,0 +1,47 @@
|
||||
# Contributor: Raed Rizqie <raed.rizqie@gmail.com>
|
||||
|
||||
_realname='keyring'
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=${MINGW_PACKAGE_PREFIX}-python-${_realname}
|
||||
pkgver=23.2.1
|
||||
pkgrel=1
|
||||
pkgdesc='Provides an easy way to access the system keyring service (mingw-w64)'
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
|
||||
license=('MIT')
|
||||
url='https://github.com/jaraco/keyring'
|
||||
depends=(
|
||||
${MINGW_PACKAGE_PREFIX}-python-pywin32-ctypes
|
||||
${MINGW_PACKAGE_PREFIX}-python-importlib-metadata
|
||||
${MINGW_PACKAGE_PREFIX}-python-zipp)
|
||||
makedepends=(
|
||||
${MINGW_PACKAGE_PREFIX}-python
|
||||
${MINGW_PACKAGE_PREFIX}-python-setuptools)
|
||||
source=("https://github.com/jaraco/${_realname}/archive/v${pkgver}.tar.gz"
|
||||
001-add-version-string.patch)
|
||||
sha256sums=('4281c405264e8b7f2af82d8194f2e0667babce123c21e0fc3c5f6d98d870e859'
|
||||
'0bf049f75ee5cd3816ff6cd7fae3442709ec51b69d663cd556dbd0fb09fa326e')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
patch -p1 -i "${srcdir}/001-add-version-string.patch"
|
||||
|
||||
cd "${srcdir}"
|
||||
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 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
Reference in New Issue
Block a user