summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e752b863a6c4e55d46be951135b2eaee7527035 (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
# Maintainer: Archisman Panigrahi <apandada1ATgmail.com>
_pkgname=doi2bib3
pkgname=python-doi2bib3-git
pkgver=0.4.0
pkgrel=1
pkgdesc="Fetch BibTeX for DOIs or resolve arXiv ids to DOIs and fetch BibTeX"
arch=('any')
provides=('doi2bib3')
conflicts=('python-doi2bib3' 'doi2bib3')
url="https://github.com/archisman-panigrahi/doi2bib3"
license=('GPL')
depends=('python' 'python-requests' 'python-bibtexparser')
makedepends=('python-pip' 'python-packaging' 'python-build' 'git')
source=("git+https://github.com/archisman-panigrahi/doi2bib3.git")
md5sums=('SKIP')

prepare() {
  cd "$srcdir/$_pkgname"
}

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

package() {
  cd "$srcdir/$_pkgname"
  python -m pip install --root="$pkgdir" --prefix=/usr --no-deps dist/*.whl

  # install README under the real package name
  install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}