mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
37 lines
943 B
Bash
37 lines
943 B
Bash
|
# arch contributor: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/namcap
|
||
|
|
||
|
pkgname=namcap
|
||
|
pkgver=3.2.6
|
||
|
pkgrel=1
|
||
|
pkgdesc="A Pacman package analyzer"
|
||
|
arch=('any')
|
||
|
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=('a7d3f21b5df211c1e2cbfae80373e657d49d1b36')
|
||
|
|
||
|
prepare() {
|
||
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||
|
python3 setup.py build
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||
|
# env PARSE_PKGBUILD_PATH=${srcdir}/${pkgname}-${pkgver} \
|
||
|
# PATH=${srcdir}/${pkgname}-${pkgver}:$PATH \
|
||
|
# python3 setup.py test
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||
|
python3 setup.py install --root=${pkgdir}
|
||
|
}
|
||
|
|