talimat 781 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Description: A tool for generating text-scanning programs
  2. # URL: http://flex.sourceforge.net
  3. # Maintainers: Will Estes,John Millaway,Aaron Stone,Vern Paxson,Van Jacobson,Jef Poskanzer,Kevin Gong,Vern Paxson
  4. # Packager: pierre at nutyx dot org
  5. name=flex
  6. version=2.5.39
  7. release=1
  8. source=(http://prdownloads.sourceforge.net/flex/flex-$version.tar.xz)
  9. build()
  10. {
  11. cd flex-$version
  12. sed -i -e '/test-bison/d' tests/Makefile.in
  13. ./configure --prefix=/usr \
  14. --libdir=/lib --bindir=/bin --sbindir=/sbin \
  15. --docdir=/usr/share/doc/flex-$version
  16. make
  17. make -k check||true
  18. make DESTDIR=$PKG install
  19. ln -sv libfl.a $PKG/lib/libl.a
  20. cat > $PKG/bin/lex << "EOF"
  21. #!/bin/sh
  22. # Begin /bin/lex
  23. exec /bin/flex -l "$@"
  24. # End /bin/lex
  25. EOF
  26. chmod -v 755 $PKG/bin/lex
  27. rm -r $PKG/usr/share/{info,doc}
  28. }