talimat 650 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Tanım: A tool for generating text-scanning programs
  2. # URL: http://flex.sourceforge.net
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. isim=flex
  6. surum=2.5.39
  7. devir=1
  8. kaynak=(http://prdownloads.sourceforge.net/flex/flex-$surum.tar.xz)
  9. derle() {
  10. cd flex-$surum
  11. sed -i -e '/test-bison/d' tests/Makefile.in
  12. ./configure --prefix=/usr \
  13. --libdir=/lib --bindir=/bin --sbindir=/sbin \
  14. --docdir=/usr/share/doc/flex-$surum
  15. make
  16. make -k check||true
  17. make DESTDIR=$PKG install
  18. ln -sv libfl.a $PKG/lib/libl.a
  19. cat > $PKG/bin/lex << "EOF"
  20. #!/bin/sh
  21. # Begin /bin/lex
  22. exec /bin/flex -l "$@"
  23. # End /bin/lex
  24. EOF
  25. chmod -v 755 $PKG/bin/lex
  26. rm -r $PKG/usr/share/{info,doc}
  27. }