blob: dce4bd63e33645328ef2fbe80899ce8503c48cb5 (
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
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Xyne <ca archlinux xyne, backwards>
pkgname=python-pyzotero-git
pkgver=1.6.11.r6.gbaa510b
pkgrel=1
pkgdesc="A Python wrapper for the Zotero API"
arch=(any)
url="https://github.com/urschrei/pyzotero"
license=(BlueOak-1.0.0)
depends=(python-requests python-feedparser python-bibtexparser python-pytz)
makedepends=(git python-build python-wheel python-installer python-setuptools-scm python-toml)
provides=(python-pyzotero)
conflicts=(python-pyzotero)
source=("python-pyzotero::git+https://github.com/urschrei/pyzotero.git")
sha512sums=('SKIP')
pkgver() {
cd "python-pyzotero"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "python-pyzotero"
python -m build --wheel --no-isolation
}
package() {
cd "python-pyzotero"
install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|