summaryrefslogtreecommitdiff
path: root/flex.morph
blob: 9f033eb820d8e85b0856b8eb9bdc07bd06a47047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
    "name": "flex",
    "kind": "chunk",
    "configure-commands": [
        "./autogen.sh",
        "./configure --prefix=/usr"
    ],
    "build-commands": [
        "make"
    ],
    "install-commands": [
        "make install",
        "ln -sv libfl.a \"$DESTDIR/usr/lib/libl.a\"",
        "echo '#!/bin/sh' >\"$DESTDIR/usr/bin/lex\"",
        "echo 'exec /usr/bin/flex -l \"$@\"' >>\"$DESTDIR/usr/bin/lex\"",
        "chmod -v 755 \"$DESTDIR/usr/bin/lex\""
    ]
}