updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / selinux-usr-libsemanage / PKGBUILD
blob0383d5e11b5b9fc4e347fb46313c2b10577ba340
1 # Maintainer: Nicky726 (Nicky726 <at> gmail <dot> com)                 
2 # Contributor: Sergej Pupykin (pupykin <dot> s+arch <at> gmail <dot> com)
4 pkgname=selinux-usr-libsemanage
5 _origname=libsemanage
6 _release=20110727
7 pkgver=2.1.0
8 pkgrel=1
9 pkgdesc="SELinux userspace (libsemanage including python bindings)"
10 arch=('i686' 'x86_64')
11 url="http://userspace.selinuxproject.org"
12 license=('GPL')
13 groups=('selinux' 'selinux-userspace')
14 depends=('ustr' 'selinux-usr-libselinux>=2.1.0' 'python2')
15 conflicts=('selinux-usr-libsemanage-python')
16 options=(!emptydirs)
17 source=(http://userspace.selinuxproject.org/releases/${_release}/devel/${_origname}-${pkgver}.tar.gz)
18 sha256sums=('004c05e32326b1658a85743a950b322d509032dc7c7f652989d7a20ec3652d0f')
20 build() {
21   cd "${srcdir}/${_origname}-${pkgver}"
22   # Meant for python2
23   sed -i -e "s/shell python -c/shell python2 -c/" "src/Makefile"
24   make 
25   # Build python wrapper, which is needed for semanage tool
26   make pywrap
29 package(){
30   cd "${srcdir}/${_origname}-${pkgver}"
31   make DESTDIR="${pkgdir}" install
32   make DESTDIR="${pkgdir}" install-pywrap