summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8df64e9b13490bf927154c79b53889077a4aa48 (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
# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>

pkgname=python-pyld
_pkgname='pyld'
pkgver=2.0.3
pkgrel=1
pkgdesc="JSON-LD processor written in Python"
arch=('any')
url="https://github.com/digitalbazaar/pyld"
license=('BSD')
depends=('python-setuptools')
source=(https://github.com/digitalbazaar/${_pkgname}/archive/${pkgver}.tar.gz)
sha512sums=('ec12274cf7b6b6842c054e7c78a74a36d60496377d329c821a930dcf2000a02f24b77263d20086cdd83d28c1be37ab0b0c785026c7b3bf44cc1a42597410e769')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  python3 setup.py install --root="${pkgdir}" -O1

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