diff --git a/srcpkgs/sqlite-lemon/template b/srcpkgs/sqlite-lemon/template new file mode 100644 index 00000000000..d82d3e1b732 --- /dev/null +++ b/srcpkgs/sqlite-lemon/template @@ -0,0 +1,29 @@ +# 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 +} diff --git a/srcpkgs/sqlite-lemon/update b/srcpkgs/sqlite-lemon/update new file mode 100644 index 00000000000..425926ce0da --- /dev/null +++ b/srcpkgs/sqlite-lemon/update @@ -0,0 +1 @@ +pattern='>Version \K[\d.]+'