blob: 43df282971f6e3d833d1cd3a947053906d890606 (
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
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Excitable Snowball <excitablesnowball@gmail.com>
pkgname="doi2bib"
pkgver=0.4.0
pkgrel=1
pkgdesc="Generate a bibtex given a doi"
arch=('any')
url="https://github.com/bibcure/${pkgname}"
license=('MIT')
depends=('python' 'python-bibtexparser' 'python-future' 'python-requests')
makedepends=('python-build' 'python-installer' 'python-wheel'
'python-setuptools')
_pkgsrc="${pkgname}-${pkgver}"
source=("${_pkgsrc}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('272458eb88a34ab0fd4c69c6a4f2698496ccd9791d827f52b6c2b3ae6a3a221c')
build() {
cd "${srcdir}/${_pkgsrc}"
python -m build --wheel --no-isolation
}
package() {
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd "${srcdir}/${_pkgsrc}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "${site_packages}/${_pkgsrc}.dist-info/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|