blob: dbfd04bb1e9f4e7e15af0cc35e7db9ad146a0cbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# SELinux Maintainer: Nicolas Iooss (nicolas <dot> iooss <at> m4x <dot> org)
# SELinux Contributor: Timothée Ravier
# SELinux Contributor: Nicky726 <Nicky726@gmail.com>
#
# This PKGBUILD is maintained on https://github.com/archlinuxhardened/selinux.
# If you want to help keep it up to date, please open a Pull Request there.
pkgname=findutils-selinux
pkgver=4.11.0
pkgrel=1
pkgdesc="GNU utilities to locate files with SELinux support"
arch=('x86_64' 'aarch64')
license=('GPL-3.0-or-later')
groups=('selinux')
depends=('glibc' 'libselinux')
makedepends=('git' 'wget' 'python')
conflicts=("${pkgname/-selinux}" "selinux-${pkgname/-selinux}")
provides=("${pkgname/-selinux}=${pkgver}-${pkgrel}"
"selinux-${pkgname/-selinux}=${pkgver}-${pkgrel}")
url='https://www.gnu.org/software/findutils/'
source=(
git+https://git.savannah.gnu.org/git/findutils.git?signed#tag=v${pkgver}
git+https://git.savannah.gnu.org/git/gnulib.git
)
validpgpkeys=(
'A5189DB69C1164D33002936646502EF796917195' # Bernhard Voelker <mail@bernhard-voelker.de>
'0CF4E8D871593224842832B888DD9E08C5DDACB9' # James Youngman <james@youngman.org>
)
b2sums=('234e55a7eb5d9b882e45f9fb40446f765741130e4c3ebd01154344e48f0d3bcb6b36442d1c99c3574df239511959d542ec9b201fe269a1fd7b527edd058c54d5'
'SKIP')
prepare() {
cd "${pkgname/-selinux}"
git submodule init
git config submodule.gnulib.url "${srcdir}/gnulib"
git -c protocol.file.allow=always submodule update
./bootstrap
}
build() {
cd "${pkgname/-selinux}"
# Don't build or install locate because we use mlocate,
# which is a secure version of locate.
sed -e '/^SUBDIRS/s/locate//' -e 's/frcode locate updatedb//' -i Makefile.in
./configure --prefix=/usr
# don't build locate, but the docs want a file in there.
make -C locate dblocation.texi
make
}
check() {
cd "${pkgname/-selinux}"
make check
}
package() {
cd "${pkgname/-selinux}"
make DESTDIR="${pkgdir}" install
}
|