google-cloud-storage
This commit is contained in:
39
mingw-w64-python-google-cloud-storage/PKGBUILD
Normal file
39
mingw-w64-python-google-cloud-storage/PKGBUILD
Normal file
@@ -0,0 +1,39 @@
|
||||
# Maintainer: Sarah Ottinger
|
||||
|
||||
_realname=google-cloud-storage
|
||||
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=1.29.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=('a77e820b370a3d5c6e6280ed13d49be210a82985a3d597d149891b23a07fd12b')
|
||||
|
||||
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