aports/testing/ostree-push/APKBUILD
Jian-Hong Pan a76a7d7133 testing/ostree-push: new aport
https://github.com/dbnicholson/ostree-push
Push commits from local OSTree repo to a remote
2025-03-17 07:30:13 +00:00

48 lines
1 KiB
Text
Executable file

# Maintainer: Jian-Hong Pan <jhp@endlessos.org>
pkgname=ostree-push
pkgver=1.2.0
pkgrel=0
pkgdesc="Push commits from local OSTree repo to a remote"
url="https://github.com/dbnicholson/ostree-push"
arch="noarch !loongarch64"
license="GPL-2.0-only"
depends="
openssh-client
ostree
ostree-gir
py3-gobject3
py3-yaml
python3
"
makedepends="
cairo-dev
py3-gobject3-dev
py3-gpep517
py3-setuptools
py3-wheel
python3-dev
"
checkdepends="pytest"
subpackages="$pkgname-pyc"
source="$pkgname-v$pkgver.tar.gz::https://github.com/dbnicholson/ostree-push/archive/refs/tags/v$pkgver.tar.gz"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
90c10f004692a3ef53a22ccd5c58ca3fc5b9806ea94635d787db293b319b3c1e30fbce168a2d30db5046bd2c26f228fc3f987a1d36065dfd530e67fbbdc14dc4 ostree-push-v1.2.0.tar.gz
"