PKGBUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Maintainer (Arch): Allan McRae <allan@archlinux.org>
  2. # Contributor (Arch): Andreas Radke <andyrtr@archlinux.org>
  3. # Maintainer: André Silva <emulatorman@hyperbola.info>
  4. # Contributor: Márcio Silva <coadde@hyperbola.info>
  5. # Contributor: Tobias Dausend <throgh@hyperbola.info>
  6. pkgname=autoconf
  7. pkgver=2.71
  8. _debver=$pkgver
  9. _debrel=3
  10. pkgrel=1
  11. pkgdesc="A GNU tool for automatically configuring source code"
  12. arch=('any')
  13. license=('custom:GPL-3+Autoconf-Configure-Script-Exception')
  14. url='https://www.gnu.org/software/autoconf/autoconf.html'
  15. groups=('base-devel')
  16. depends=('awk' 'm4' 'diffutils' 'perl')
  17. makedepends=('help2man' 'quilt') # help2man is needed while perl patch is present
  18. source=("https://ftp.gnu.org/gnu/autoconf/${pkgname}-${pkgver}.tar.xz"{,.sig}
  19. "https://deb.debian.org/debian/pool/main/a/autoconf/autoconf_${_debver}-${_debrel}.debian.tar.xz")
  20. sha512sums=('73d32b4adcbe24e3bafa9f43f59ed3b6efbd3de0f194e5ec90375f35da1199c583f5d3e89139b7edbad35171403709270e339ffa56a2ecb9b3123e9285021ff0'
  21. 'SKIP'
  22. '12debf9cd25329130b7d9b00b77bbbfb7f3f26cdf6dbe60188203e3a66ed933f693de02c3816856e4157d5843647d7c834c3bd924345a7ac41ad35aac3689f63')
  23. validpgpkeys=('82F854F3CE73174B8B63174091FCC32B6769AA64') # Zack Weinberg <zackw@panix.com>
  24. prepare() {
  25. cd "${pkgname}-${pkgver}"
  26. if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
  27. # Debian patches
  28. export QUILT_PATCHES=debian/patches
  29. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  30. export QUILT_DIFF_ARGS='--no-timestamps'
  31. mv "$srcdir"/debian .
  32. quilt push -av
  33. fi
  34. }
  35. build() {
  36. cd "${pkgname}-${pkgver}"
  37. ./configure --prefix=/usr
  38. make
  39. }
  40. package() {
  41. cd "${srcdir}/${pkgname}-${pkgver}"
  42. make DESTDIR="${pkgdir}" install
  43. # license + license exception
  44. for i in COPYING{v3,.EXCEPTION}; do
  45. install -Dm644 $i "$pkgdir"/usr/share/licenses/autoconf/$i
  46. done
  47. # remove unwanted file
  48. rm -f "$pkgdir"/usr/share/info/standards.info
  49. }