projects/aports·blob master · refs

41 lines · 1.2 KiB

1# Contributor: Russ Webber <[email protected]>
2# Maintainer: Russ Webber <[email protected]>
3pkgname=py3-rospkg
4_pkgname=rospkg
5pkgver=1.6.1
6pkgrel=1
7pkgdesc="Standalone Python library for the ROS package system"
8url="http://wiki.ros.org/rospkg"
9arch="noarch"
10license="BSD-3-Clause"
11depends="python3 py3-yaml py3-catkin-pkg py3-distro"
12makedepends="py3-gpep517 py3-setuptools"
13checkdepends="py3-pytest"
14
15subpackages="$pkgname-pyc"
16source="$pkgname-$pkgver.tar.gz::https://github.com/ros-infrastructure/rospkg/archive/$pkgver.tar.gz
17 loongarch.patch
18 "
19builddir="$srcdir/$_pkgname-$pkgver"
20
21build() {
22 gpep517 build-wheel \
23 --wheel-dir .dist \
24 --output-fd 3 3>&1 >&2
25}
26
27check() {
28 python3 -m venv --clear --without-pip --system-site-packages .testenv
29 .testenv/bin/python3 -m installer .dist/*.whl
30 .testenv/bin/python3 -m pytest
31}
32
33package() {
34 python3 -m installer -d "$pkgdir" \
35 .dist/*.whl
36}
37
38sha512sums="
39ce30f39eceb5b316fd6ba6be4f1ec90d6cdde38d46e92ca0819b2f7f1c1858e902df08ab6eb528c57d34289d9169ad614acc00a99d066c40b5efc5a82a16320a py3-rospkg-1.6.1.tar.gz
40217ae6f0c8ddefa24c45baf1764e5c281c8b13e6a59697dfedd079e61564acbe838ff659e8205b48edb7a8283fa0ff32b5183639290501c97df72ba80e2f453e loongarch.patch
41"