mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
57 lines
1.3 KiB
Text
57 lines
1.3 KiB
Text
# Contributor: Joshua Murphy <joshuamurphy@posteo.net>
|
|
maintainer="Joshua Murphy <joshuamurphy@posteo.net>"
|
|
pkgname=sc-controller
|
|
pkgver=0.5.1
|
|
pkgrel=0
|
|
pkgdesc="User-mode driver and GTK3 based GUI for the Steam Controller"
|
|
url="https://github.com/C0rn3j/sc-controller"
|
|
# s390x: py3-vdf
|
|
arch="all !s390x"
|
|
license="GPL-2.0-only"
|
|
depends="
|
|
gtk+3.0
|
|
gtk-layer-shell
|
|
libayatana-appindicator
|
|
librsvg
|
|
py3-cairo
|
|
py3-evdev
|
|
py3-gobject3
|
|
py3-ioctl-opt
|
|
py3-libacl
|
|
py3-libusb1
|
|
py3-vdf
|
|
"
|
|
makedepends="
|
|
linux-headers
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-setuptools_scm
|
|
py3-wheel
|
|
python3-dev
|
|
zlib-dev
|
|
"
|
|
checkdepends="py3-pytest py3-toml"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/C0rn3j/sc-controller/archive/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
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="
|
|
069dd1acfa9f81c0117005443ae2d865da255c6da8f6ab10f4c53e3dab3cf8fda3fcd77b8d7292d9f3b38edffdc91af834dac6cd3557f155ceba19b1ad47f065 sc-controller-0.5.1.tar.gz
|
|
"
|