[new-package] python-pynput 1.7.7
This commit is contained in:
parent
239e797483
commit
aaedf307bc
40
mingw-w64-python-pynput/PKGBUILD
Normal file
40
mingw-w64-python-pynput/PKGBUILD
Normal file
@ -0,0 +1,40 @@
|
||||
# Maintainer: Philipp Smirnov https://github.com/sad-poet
|
||||
|
||||
_realname=pynput
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=1.7.7
|
||||
pkgrel=1
|
||||
pkgdesc="Python library to monitor and control user input devices (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
url='https://github.com/moses-palmer/pynput'
|
||||
msys2_references=(
|
||||
'aur: python-pynput'
|
||||
'pypi: pynput'
|
||||
)
|
||||
license=('spdx:LGPL-3.0-only')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-six")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
options=('!strip')
|
||||
source=("https://github.com/moses-palmer/pynput/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('e042e70933938b3b1226aee936d60acf03f43d52e83d7abbd728e8bab2deeacd')
|
||||
|
||||
build() {
|
||||
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
||||
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
|
||||
install -Dm644 COPYING.LGPL "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/COPYING.LGPL"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user