# Template file for 'sqlite-lemon' pkgname=sqlite-lemon version=3.45.0 revision=1 short_desc="LALR(1) Parser Generator" maintainer="Đoàn Trần Công Danh " license="Public Domain" homepage="https://sqlite.org/lemon.html" distfiles="https://raw.githubusercontent.com/sqlite/sqlite/version-${version}/tool/lemon.c https://raw.githubusercontent.com/sqlite/sqlite/version-${version}/tool/lempar.c" checksum="8a7d39a6d55cef0e6769f869a09d1269e3aca366c44291e1445bb877e5e94b00 4cfe425b513895dd11af7d3cde963920a2daeb7f5731f706e6973bfc79f207ed" skip_extraction="lemon.c lempar.c" do_extract() { vsrccopy $skip_extraction . vsed -i -e 's,"lempar.c","/usr/share/lemon/lempar.c",' lemon.c } do_build() { echo $CC $CFLAGS $LDFLAGS -o lemon lemon.c $CC $CFLAGS $LDFLAGS -o lemon lemon.c } do_install() { vbin lemon vinstall lempar.c 644 usr/share/lemon }