updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / selinux-findutils / PKGBUILD
blob1d34304c8890f69afe9be571e3507fc0589b3bd9
1 # $Id: PKGBUILD 100218 2010-11-21 23:38:22Z stephane $
2 # Maintainer: Nicky726 <Nicky726@gmail.com>
4 pkgname=selinux-findutils
5 _origname=findutils
6 pkgver=4.4.2
7 pkgrel=3
8 pkgdesc="GNU utilities to locate files with Gentoo SELinux patch"
9 arch=('i686' 'x86_64')
10 license=('GPL3')
11 groups=('selinux' 'selinux-system-utilities')
12 depends=('glibc' 'sh' 'selinux-usr-libselinux')
13 conflicts=("${_origname}")
14 provides=("${_origname}=${pkgver}-${pkgrel}")
15 url="http://www.gnu.org/software/findutils"
16 source=(ftp://ftp.gnu.org/pub/gnu/findutils/${_origname}-${pkgver}.tar.gz
17         http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/${_origname}/files/${_origname}-${pkgver}-selinux.diff)
18 install=findutils.install
19 sha1sums=('e8dd88fa2cc58abffd0bfc1eddab9020231bb024'
20           '96318be5586d324a13805da81907406a95c6514c')
22 build() {
23   cd "${srcdir}/${_origname}-${pkgver}"
25   # Apply SELinux patch
26   patch -Np1 -i "${srcdir}/${_origname}-${pkgver}-selinux.diff"
28   # Don't build or install locate because we use mlocate,
29   # which is a secure version of locate.
30   sed -i '/^SUBDIRS/s/locate//' Makefile.in
32   ./configure --prefix=/usr
33   make
36 package() {
37   cd "${srcdir}/${_origname}-${pkgver}"
38   make DESTDIR=$pkgdir install