summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25d3ba8e7a869667ce3f70f3eae0d528fee9ae09 (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: Marten Hoffmann <maa@mailbox.org>
# Contributor: Philip Goto <philip.goto@gmail.com> 
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Chris Brendel <cdbrendel@gmail.com>

_pkgname=catalogue
pkgname="python-${_pkgname}"
pkgver=2.0.10
pkgrel=1
pkgdesc='Super lightweight function registries for your library'
arch=(any)
url='https://github.com/explosion/catalogue'
license=(MIT)
depends=(
  python
  python-pytest
  python-zipp
  python-typing_extensions
)
makedepends=(python-setuptools)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
b2sums=('f3bcd13ca8d5eacf625f96e5ab82a6a20bf9d7fc1de757c08be5eccd8ff873430ec5c9e0bdc91ae84aae130ae80416e61aae4340179de23a8684a8d8c31059ef')

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

package() {
	cd "${_pkgname}-${pkgver}"
	python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
	install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}"
	install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}