PKGBUILD 915 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
  2. # Contributor: Allan McRae <allan@archlinux.org>
  3. # Contributor: judd <jvinet@zeroflux.org>
  4. pkgname=flex
  5. pkgver=2.6.4
  6. pkgrel=1
  7. pkgdesc="A tool for generating text-scanning programs"
  8. arch=('x86_64' 'ppc64le')
  9. url="https://github.com/westes/flex"
  10. license=('custom')
  11. groups=('base-devel')
  12. depends=('glibc' 'm4' 'sh')
  13. makedepends=('help2man')
  14. source=("https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz")
  15. md5sums=('2882e3179748cc9f9c23ec593d6adc8d')
  16. build() {
  17. cd "$pkgname-$pkgver"
  18. ./configure --prefix=/usr
  19. make
  20. }
  21. check() {
  22. cd "$pkgname-$pkgver"
  23. # cxx_restart fails - https://github.com/westes/flex/issues/98
  24. make -k check || true
  25. }
  26. package() {
  27. cd "$pkgname-$pkgver"
  28. make DESTDIR="$pkgdir" install
  29. ln -s flex "${pkgdir}/usr/bin/lex"
  30. install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/license.txt"
  31. }