Commit b4377b79 authored by Jeff Huang's avatar Jeff Huang 🤔

[skip-ci] findutils: update to 4.7.0

parent 468e705a
Pipeline #4150 skipped
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer: abveritas@chakra-project.org
pkgname=findutils
pkgver=4.4.2
pkgrel=5
pkgver=4.7.0
pkgrel=1
pkgdesc="GNU utilities to locate files"
arch=('x86_64')
license=('GPL3')
groups=('base')
groups=('base' 'base-devel')
depends=('glibc' 'sh')
url="http://www.gnu.org/software/findutils"
source=("ftp://ftp.gnu.org/pub/gnu/findutils/findutils-$pkgver.tar.gz")
install=findutils.install
md5sums=('351cc4adb07d54877fa15f75fb77d39f')
url="https://www.gnu.org/software/findutils"
source=("https://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz")
sha256sums=('c5fefbdf9858f7e4feb86f036e1247a54c79fc2d8e4b7064d5aaa1f47dfa789a')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Don't build or install locate because we use mlocate,
# which is a secure version of locate.
sed -i '/^SUBDIRS/s/locate//' Makefile.in
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
}
......@@ -35,5 +31,5 @@ check() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR=$pkgdir install
make DESTDIR="$pkgdir" install
}
infodir=/usr/share/info
filelist=(find-maint.info find.info)
post_install() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment