vp-build/srcpkgs/python-pkgconfig/template

32 lines
803 B
Bash

# Template file for 'python-pkgconfig'
pkgname=python-pkgconfig
version=1.5.1
revision=2
archs=noarch
wrksrc="pkgconfig-${version}"
build_style=python-module
pycompile_module="pkgconfig"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 module to interface with pkg-config"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/matze/pkgconfig"
distfiles="${PYPI_SITE}/p/pkgconfig/pkgconfig-${version}.tar.gz"
checksum=97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f
post_install() {
vlicense LICENSE
}
python3-pkgconfig_package() {
archs=noarch
depends="python3"
pycompile_module="pkgconfig"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}