From 7509c899ba022c030c7cfcd1179fc14c06d3c3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Jan 2024 21:18:53 +0700 Subject: [PATCH] New package: sqlite-lemon-3.45.0 --- srcpkgs/sqlite-lemon/template | 29 +++++++++++++++++++++++++++++ srcpkgs/sqlite-lemon/update | 1 + 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/sqlite-lemon/template create mode 100644 srcpkgs/sqlite-lemon/update 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.]+'