google-cloud-storage readded
This commit is contained in:
committed by
Christoph Reiter
parent
47ae668f33
commit
249884e169
36
mingw-w64-python-google-cloud-storage/PKGBUILD
Normal file
36
mingw-w64-python-google-cloud-storage/PKGBUILD
Normal file
@@ -0,0 +1,36 @@
|
||||
# Maintainer: Sarah Ottinger <schalaalexiazeal@gmail.com>
|
||||
|
||||
_realname=google-cloud-storage
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=1.32.0
|
||||
pkgrel=1
|
||||
pkgdesc='Google Cloud Storage API client library (mingw-w64)'
|
||||
arch=('any')
|
||||
url="https://github.com/googleapis/python-storage"
|
||||
license=('Apache-2.0')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python-google-cloud-core" "${MINGW_PACKAGE_PREFIX}-python-google-resumable-media")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
options=('!emptydirs')
|
||||
source=("${_realname}-$pkgver.tar.gz::https://github.com/googleapis/python-storage/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('6dc451f18ab24a99fabba5c265419263accc670b42c797256e0aa71fa6671fa2')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
rm -rf python-build-${CARCH} | true
|
||||
cp -r "python-storage-${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