jobextra/pyalpm/PKGBUILD

51 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.8
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
}
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)
## 56e091c9b58187a35d5b593e48c3b1a23ee823d53ea997257c091c372cbfbe9d pyalpm-0.10.8-01-x86_64.pkg.tar.lz