milis/talimatname/temel/flex/talimat

37 lines
650 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: A tool for generating text-scanning programs
# URL: http://flex.sourceforge.net
# Paketçi: milisarge
# Gerekler:
isim=flex
surum=2.5.39
devir=1
kaynak=(http://prdownloads.sourceforge.net/flex/flex-$surum.tar.xz)
derle() {
cd flex-$surum
sed -i -e '/test-bison/d' tests/Makefile.in
./configure --prefix=/usr \
--libdir=/lib --bindir=/bin --sbindir=/sbin \
--docdir=/usr/share/doc/flex-$surum
make
make -k check||true
make DESTDIR=$PKG install
ln -sv libfl.a $PKG/lib/libl.a
cat > $PKG/bin/lex << "EOF"
#!/bin/sh
# Begin /bin/lex
exec /bin/flex -l "$@"
# End /bin/lex
EOF
chmod -v 755 $PKG/bin/lex
rm -r $PKG/usr/share/{info,doc}
}