[core] Package Build scripts files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8KB

  1. # Maintainer (Arch):
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. pkgname=findutils
  4. pkgver=4.6.0
  5. _debver=4.6.0+git+20161106
  6. _debrel=2
  7. pkgrel=2.hyperbola1
  8. pkgdesc="GNU utilities to locate files"
  9. arch=('i686' 'x86_64')
  10. license=('GPL-3')
  11. groups=('base' 'base-devel')
  12. depends=('glibc' 'sh')
  13. makedepends=('quilt')
  14. url="https://www.gnu.org/software/findutils"
  15. source=(https://ftp.gnu.org/pub/gnu/findutils/${pkgname}-${pkgver}.tar.gz
  16. https://deb.debian.org/debian/pool/main/f/findutils/findutils_$_debver-$_debrel.debian.tar.xz)
  17. sha512sums=('41fcd4197c1efbd77f7420e5754e2cf9332dfef19f90c65a8fa1844bb4bc5d529c8393ee0ff979a054e9ac65ff71d7fe3921ea079f9960843412fc9a71f8afd4'
  18. '786c36f2f8acde2247ef6495216050fbf3ce79b7c5420570e88fdc116877c161db0e1da3e1633b02ba2073956e4b25066894f533ce1254021094e8782ed6dd07')
  19. prepare() {
  20. cd "${srcdir}/${pkgname}-${pkgver}"
  21. if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
  22. # Debian patches
  23. export QUILT_PATCHES=debian/patches
  24. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  25. export QUILT_DIFF_ARGS='--no-timestamps'
  26. mv "$srcdir"/debian .
  27. # Doesn't apply and seems unimportant
  28. rm -v debian/patches/10_fix_bsd_hurd_testsuite.diff || true
  29. rm -v debian/patches/20_find-fix-memory-leak-in-mount-list-handling.patch || true
  30. quilt push -av
  31. fi
  32. }
  33. build() {
  34. cd "${srcdir}/${pkgname}-${pkgver}"
  35. # Don't build or install locate because we use mlocate,
  36. # which is a secure version of locate.
  37. sed -i '/^SUBDIRS/s/locate//' Makefile.in
  38. ./configure --prefix=/usr
  39. # don't build locate, but the docs want a file in there.
  40. make -C locate dblocation.texi
  41. make
  42. }
  43. check() {
  44. cd "${srcdir}/${pkgname}-${pkgver}"
  45. make check
  46. }
  47. package() {
  48. cd "${srcdir}/${pkgname}-${pkgver}"
  49. make DESTDIR=$pkgdir install
  50. install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
  51. }