desktop/namcap/PKGBUILD
2018-04-12 14:22:41 +01:00

37 lines
888 B
Bash

# arch contributor: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/namcap
pkgname=namcap
pkgver=3.2.7
pkgrel=2
pkgdesc="A Pacman package analyzer"
arch=('x86_64')
url="http://projects.archlinux.org/namcap.git/"
license=('GPL')
depends=('python3' 'pyalpm>=0.5' 'licenses'
'binutils' 'elfutils' 'python3-pyelftools')
makedepends=('python3-setuptools')
source=(https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz)
sha1sums=('fa43c1f0d842a1b49bb14fe3418630e752f74c82')
prepare() {
cd $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
python3 setup.py build
}
check() {
cd $pkgname-$pkgver
# env PARSE_PKGBUILD_PATH=${srcdir}/${pkgname}-${pkgver} \
# PATH=${srcdir}/${pkgname}-${pkgver}:$PATH \
# python3 setup.py test
}
package() {
cd $pkgname-$pkgver
python3 setup.py install --root=$pkgdir
}