python-prctl: fix pycompile_module, remove unnecessary depends (!noarch)

This commit is contained in:
Alessio Sergi 2018-05-24 20:38:08 +02:00
parent 2276f2be62
commit e3bdad3425

View file

@ -1,26 +1,20 @@
# Template file for 'python-prctl' # Template file for 'python-prctl'
pkgname=python-prctl pkgname=python-prctl
version=1.7 version=1.7
revision=1 revision=2
build_style=python-module build_style=python-module
pycompile_module="prctl" pycompile_module="prctl.py"
hostmakedepends="python-setuptools python3-setuptools" hostmakedepends="python-setuptools python3-setuptools libcap-devel"
makedepends="libcap-devel python-devel python3-devel" makedepends="libcap-devel python-devel python3-devel"
depends="python"
short_desc="Python2 interface for the Linux prctl syscall" short_desc="Python2 interface for the Linux prctl syscall"
maintainer="maxice8 <thinkabit.ukim@gmail.com>" maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="GPL-3+" license="GPL-3.0-or-later"
homepage="https://github.com/seveas/python-prctl" homepage="https://github.com/seveas/python-prctl"
distfiles="https://github.com/seveas/python-prctl/archive/v${version}.tar.gz" distfiles="https://github.com/seveas/python-prctl/archive/v${version}.tar.gz"
checksum=03bb346430f5ffa707f14de5a3796936f64d627cd07c8e97135d100598bf38a5 checksum=03bb346430f5ffa707f14de5a3796936f64d627cd07c8e97135d100598bf38a5
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" ${makedepends}"
fi
python3-prctl_package() { python3-prctl_package() {
pycompile_module="prctl" pycompile_module="prctl.py"
depends="python3"
short_desc="${short_desc/Python2/Python3}" short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3* vmove usr/lib/python3*