summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4a1997d6ca0d68c3bd9e186e527f23a6647646d (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: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=python-sphinxcontrib-svg2pdfconverter
pkgver=1.2.2
pkgrel=1
pkgdesc="Sphinx SVG to PDF converter extension"
arch=('any')
url='https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter'
license=('BSD')
depends=('python-sphinx')
makedepends=(
  'python-setuptools'
  'python-installer'
  'python-wheel'
  'python-build'
)
optdepends=(
  'librsvg: Use librsvg engine'
  'inkscape: Use inkscape engine'
)
source=("https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter/archive/v${pkgver}.tar.gz")
sha256sums=('bdaca33b740261cbff41519ecbd2791c59d33b403f366636fc4f912213abe05c')

build() {
  cd "sphinxcontrib-svg2pdfconverter-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "sphinxcontrib-svg2pdfconverter-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl

  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/License.txt"
}