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

[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 pkgname=findutils
pkgver=4.4.2 pkgver=4.7.0
pkgrel=5 pkgrel=1
pkgdesc="GNU utilities to locate files" pkgdesc="GNU utilities to locate files"
arch=('x86_64') arch=('x86_64')
license=('GPL3') license=('GPL3')
groups=('base') groups=('base' 'base-devel')
depends=('glibc' 'sh') depends=('glibc' 'sh')
url="http://www.gnu.org/software/findutils" url="https://www.gnu.org/software/findutils"
source=("ftp://ftp.gnu.org/pub/gnu/findutils/findutils-$pkgver.tar.gz") source=("https://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz")
install=findutils.install sha256sums=('c5fefbdf9858f7e4feb86f036e1247a54c79fc2d8e4b7064d5aaa1f47dfa789a')
md5sums=('351cc4adb07d54877fa15f75fb77d39f')
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
# Don't build or install locate because we use mlocate, # Don't build or install locate because we use mlocate,
# which is a secure version of locate. # 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 ./configure --prefix=/usr
# don't build locate, but the docs want a file in there.
make -C locate dblocation.texi
make make
} }
...@@ -35,5 +31,5 @@ check() { ...@@ -35,5 +31,5 @@ check() {
package() { package() {
cd "${srcdir}/${pkgname}-${pkgver}" 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