PKGBUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Mainainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
  2. # Contributor: Allan McRae <allan@archlinux.org>
  3. # Contributor: Andreas Radke <andyrtr@archlinux.org>
  4. pkgname=tar
  5. pkgver=1.30
  6. pkgrel=1
  7. pkgdesc='Utility used to store, backup, and transport files'
  8. arch=('x86_64' 'ppc64le')
  9. url='https://www.gnu.org/software/tar/'
  10. license=('GPL3')
  11. groups=('base')
  12. depends=('glibc' 'acl' 'attr')
  13. options=('!emptydirs')
  14. validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff
  15. source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
  16. md5sums=('2d01c6cd1387be98f57a0ec4e6e35826'
  17. 'SKIP')
  18. prepare() {
  19. cd $pkgname-$pkgver
  20. # apply patch from the source array (should be a pacman feature)
  21. local filename
  22. for filename in "${source[@]}"; do
  23. if [[ "$filename" =~ \.patch$ ]]; then
  24. msg2 "Applying patch ${filename##*/}"
  25. patch -p1 -N -i "$srcdir/${filename##*/}"
  26. fi
  27. done
  28. :
  29. }
  30. build() {
  31. cd $pkgname-$pkgver
  32. ./configure --prefix=/usr --libexecdir=/usr/lib/tar
  33. make
  34. }
  35. check() {
  36. cd $pkgname-$pkgver
  37. make check
  38. }
  39. package() {
  40. cd $pkgname-$pkgver
  41. make DESTDIR="$pkgdir" install
  42. }
  43. # vim:set ts=2 sw=2 et: