volume_key: split python bindings into a subpkg.

This commit is contained in:
Enno Boland 2018-04-19 14:13:01 +02:00
parent 9e0f4138a8
commit 4ba0e8cdcc
No known key found for this signature in database
GPG key ID: D09964719BDE9971
2 changed files with 12 additions and 2 deletions

1
srcpkgs/volume_key-python Symbolic link
View file

@ -0,0 +1 @@
volume_key

View file

@ -1,7 +1,7 @@
# Template file for 'volume_key'
pkgname=volume_key
version=0.3.9
revision=2
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config python-devel"
makedepends="cryptsetup-devel glib-devel gpgme-devel nss-devel python-devel"
@ -16,9 +16,18 @@ if [ -n "$CROSS_BUILD" ]; then
make_build_args+=" PYTHON_CPPFLAGS=-I${XBPS_CROSS_BASE}/usr/include/python2.7"
fi
volume_key-python_package() {
short_desc+=" - python bindings"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/python*"
}
}
volume_key-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
depends="${sourcepkg}>=${version}_${revision}
${sourcepkg}-python3>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so