void-packages/srcpkgs/python3-xcffib/template

22 lines
808 B
Bash

# Template file for 'python3-xcffib'
pkgname=python3-xcffib
version=1.5.0
revision=2
build_style=python3-pep517
hostmakedepends="python3-setuptools pkg-config cabal-install parallel xcb-proto python3-cffi python3-wheel"
makedepends="python3-devel libffi-devel libxcb-devel python3-six"
depends="python3-six python3-cffi libxcb"
checkdepends="python3-pytest xvfb-run xeyes"
short_desc="Drop-in replacement for xpyb based on cffi"
maintainer="Kai Stian Olstad <void@olstad.com>"
license="Apache-2.0"
homepage="https://github.com/tych0/xcffib"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=3bf9ce88b8a343a12eb1fc72a7b3e6091f8b65e682354510261b0a2cae1b00c5
nocross="Cannot yet cross compile with Haskell"
pre_build() {
cabal v2-update
PKG_CONFIG_PATH=/usr/lib/pkgconfig make ${makejobs} xcffib
}