summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18dc01ca5fc8603371c1b507178e6f6e2beab999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Homer Xing <homer dot hsing @t gmail dot com>
# Contributor: Jonas Heinrich <onny @t project-insanity dot org>
# Contributor: Evgeniy Alekseev <arcanis @t archlinux dot org>

pkgname=python-gspread-git
_pkgname=gspread
pkgver=v5.8.1.r0.g50b910f
pkgrel=1
epoch=
pkgdesc="Google Sheets Python API"
arch=('any')
url="https://github.com/burnash/gspread"
license=("MIT")
groups=()
depends=('python-requests' 'python-google-auth-oauthlib')
makedepends=('git' 'python-build' 'python-installer')
checkdepends=()
optdepends=()
provides=('python-gspread')
conflicts=('python-gspread')
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/burnash/gspread.git")
noextract=()
validpgpkeys=()
b2sums=('SKIP')

pkgver() {
   cd "gspread"
   git describe --long --tag | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_pkgname}"
  python3 -m build
}

package() {
  cd "${srcdir}/${_pkgname}"
  python3 -m installer --destdir="${pkgdir}/" dist/*.whl
  install -Dm644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}