namcap: port to build/installer
This commit is contained in:
@@ -2,15 +2,20 @@
|
||||
|
||||
pkgname=namcap
|
||||
pkgver=3.3.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A Pacman package analyzer"
|
||||
arch=('any')
|
||||
url="https://projects.archlinux.org/namcap.git/"
|
||||
url="https://gitlab.archlinux.org/pacman/namcap"
|
||||
license=('GPL')
|
||||
depends=('python'
|
||||
'python-pyalpm'
|
||||
'binutils')
|
||||
makedepends=('python-setuptools')
|
||||
makedepends=(
|
||||
"python-setuptools"
|
||||
"python-wheel"
|
||||
"python-build"
|
||||
"python-installer"
|
||||
)
|
||||
source=(https://gitlab.archlinux.org/pacman/namcap/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
|
||||
'001-disable-some-things.patch'
|
||||
'002-force-msys-python.patch')
|
||||
@@ -30,12 +35,12 @@ prepare() {
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
/usr/bin/python setup.py build
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
/usr/bin/python setup.py install --prefix=/usr --root="${pkgdir}"
|
||||
python -m installer --destdir="${pkgdir}" dist/*.whl
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user