1 # Maintainer: Nicky726 (Nicky726 <at> gmail <dot> com)
2 # Contributor: Sergej Pupykin (pupykin <dot> s+arch <at> gmail <dot> com)
4 pkgname=selinux-usr-libselinux
9 pkgdesc="SELinux userspace (libselinux including python bindings)"
10 arch=('i686' 'x86_64')
11 url="http://userspace.selinuxproject.org"
13 groups=('selinux' 'selinux-userspace')
14 depends=('selinux-usr-libsepol>=2.1.0' 'glibc' 'python2')
15 conflicts=('selinux-usr-libselinux-python')
17 source=(http://userspace.selinuxproject.org/releases/${_release}/devel/${_origname}-${pkgver}.tar.gz)
18 sha256sums=('fbc4911c1103b00b0530ed21d1004ffa8c661342e1101ccf4c73a573f89f9caf')
21 cd "${srcdir}/${_origname}-${pkgver}"
23 sed -i -e "s/shell python -c/shell python2 -c/" "src/Makefile"
25 # Build python wrapper, which is needed for semanage tool
30 cd "${srcdir}/${_origname}-${pkgver}"
31 make DESTDIR="${pkgdir}" install
32 make DESTDIR="${pkgdir}" install-pywrap