blob: 3d6db720928cbca980dfe0078ff130c013a20fda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/mkpkg
# description: Fast Lexical Analyzer Generator
# url: https://github.com/westes/flex
name=flex
version=2.6.4
release=2
depends=(m4)
source=(
https://github.com/westes/flex/releases/download/v$version/$name-$version.tar.gz
)
sha256sums=(
"e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995"
)
build() {
cd $name-$version
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
./configure \
--prefix=/usr \
--disable-nls
make
make DESTDIR=$PKG install
ln -sf flex $PKG/usr/bin/lex
ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
rm -r $PKG/usr/share/info
rm -r $PKG/usr/share/doc
rm -f $PKG/usr/lib/*.la
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|