python*-audit: lib32disabled=yes, fix pycompile_module

Also, they don't follow our naming convention for language bindings.
See https://github.com/void-linux/void-packages/blob/master/Manual.md#language_bindings.
This commit is contained in:
Alessio Sergi 2018-10-18 17:48:48 +02:00
parent 7650dcd182
commit 6cb007e8f7
1 changed files with 7 additions and 6 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'audit'
pkgname=audit
version=2.8.4
revision=1
revision=2
build_style=gnu-configure
configure_args="--libdir=/usr/lib --enable-shared=audit --enable-gssapi-krb5
--with-apparmor --with-libcap-ng --with-python --with-python3"
hostmakedepends="automake libtool pkg-config intltool
swig python-setuptools python3-setuptools"
hostmakedepends="automake libtool pkg-config intltool python python3 swig"
makedepends="mit-krb5-devel libldap-devel libapparmor-devel libcap-ng-devel
python-devel python3-devel"
make_dirs="/var/log/audit 0700 root root"
@ -86,16 +85,18 @@ libauparse-devel_package() {
}
python-audit_package() {
short_desc+=" - Python bindings"
pycompile_module="audit"
lib32disabled=yes
short_desc+=" - Python2 bindings"
pycompile_module="audit.py"
pkg_install() {
vmove "usr/lib/python2*"
}
}
python3-audit_package() {
lib32disabled=yes
short_desc+=" - Python3 bindings"
pycompile_module="audit"
pycompile_module="audit.py"
pkg_install() {
vmove "usr/lib/python3*"
}