52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=pyalpm
|
|
pkgver=0.10.9
|
|
pkgrel=01
|
|
pkgdesc="Libalpm bindings for Python 3"
|
|
url="https://gitlab.archlinux.org/archlinux/pyalpm"
|
|
depends=('python' 'pacman')
|
|
makedepends=('git' 'python-setuptools' 'python-pkgconfig' 'python-wheel' 'python-build' 'python-installer')
|
|
checkdepends=('python-pytest' 'python-pytest-pacman')
|
|
#source=("git+${url}.git")
|
|
source=("git+https://gitlab.archlinux.org/archlinux/pyalpm.git#tag=$pkgver")
|
|
|
|
prepare() {
|
|
cd "${pkgname}"
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
|
|
PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" pytest
|
|
}
|
|
|
|
# Only builds with fortify=2
|
|
|
|
package() {
|
|
cd $pkgname
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL-3.0-or-later')
|
|
|
|
validpgpkeys=('E499C79F53C96A54E572FEE1C06086337C50773E')
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
## febfd8fa5f4598ea6f916e20f2235bb9f2fd9313da7a61e9019d6a6979177131 pyalpm-0.10.9-01-x86_64.pkg.tar.lz
|