archrelease: copy trunk to extra-x86_64
[arch-packages.git] / namcap / repos / extra-any / PKGBUILD
blobe7dfc5aa85761f905a9d7f9e21c57740e050b289
1 # Maintainer : Rémy Oudompheng <remy@archlinux.org>
2 # Contributor: Hugo Doria <hugo@archlinux.org>
4 pkgname=namcap
5 pkgver=3.4.0
6 pkgrel=3
7 pkgdesc="A Pacman package analyzer"
8 arch=('any')
9 url='https://gitlab.archlinux.org/pacman/namcap'
10 license=('GPL')
11 depends=('python' 'pyalpm' 'licenses' 'binutils' 'elfutils' 'python-pyelftools' 'pkgconf')
12 checkdepends=('systemd' 'python-pytest' 'python-six')
13 makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
14 source=(https://gitlab.archlinux.org/pacman/namcap/-/archive/${pkgver}/namcap-${pkgver}.tar.bz2)
15 sha512sums=('ab4d1658dbdf192d1d91e3cf3cd3e4cab0be6021561e6d14ad86603b95f6261eb97bd3087a003ce493b3dea7a240d8fdddc29f059613b3ff3fb718467cd8078e')
17 prepare() {
18   cd ${pkgname}-${pkgver}
21 build() {
22   cd ${pkgname}-${pkgver}
23   python setup.py build
26 check() {
27   cd ${pkgname}-${pkgver}
28   env PARSE_PKGBUILD_PATH="${srcdir}/${pkgname}-${pkgver}" \
29       PATH="${srcdir}/${pkgname}-${pkgver}/scripts:$PATH" \
30       pytest
33 package() {
34   cd ${pkgname}-${pkgver}
35   python setup.py install --root="${pkgdir}"