#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=namcap pkgver=3.5.1 pkgrel=01 pkgdesc='A Pacman package analyzer w/o systemd' url="https://gitlab.archlinux.org/pacman/$pkgname" depends=(binutils elfutils licenses pkgconf pyalpm python python-pyelftools python-license-expression) checkdepends=(python-pytest python-six) makedepends=(python-{build,installer,wheel} python-setuptools) _archive="$pkgname-$pkgver" source=("$url/-/releases/$pkgver/downloads/$_archive.tar.bz2"{,.asc}) build() { cd "$_archive" python -m build -wn } check() { cd "$_archive" env PARSE_PKGBUILD_PATH="$PWD" PATH="$PWD/scripts:$PATH" pytest } package() { cd "$_archive" python -m installer -d "$pkgdir" dist/*.whl local site_packages="$(python -c "import site; print(site.getsitepackages()[0])")" mv "$pkgdir/"{"$site_packages/usr/share",usr} rmdir "$pkgdir/$site_packages/usr" } #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=(GPL-2.0-or-later) validpgpkeys=(9F377DDB6D3153A48EB3EB1E63CC496475267693 # caleb@alerque.com CCB34EBBB9541EF3F7B366C1D4A753468A5A5B67) # alerque@archlinux.org sha256sums=(f16d2303f2b3f7d44b70d48e1b42a31cac89266b492d6befbde30e73762c333e # namcap-3.5.1.tar.bz2 807838d3a79c650c64885948715426190c96545797849de984e709cf55d5d91e) # namcap-3.5.1.tar.bz2.asc ## a1af4a902ff96d8ca21143e94be830e3e50b5be663c7ec63aff8364530f6a5b1 namcap-3.5.1-01-x86_64.pkg.tar.lz