From 8a0a013d13861fadf7947fc4c6bee7edbf8352c3 Mon Sep 17 00:00:00 2001 From: ctoid Date: Thu, 20 Apr 2023 23:43:04 +0800 Subject: [PATCH] New package: common-lisp-ppcre-2.1.1 --- srcpkgs/common-lisp-ppcre/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/common-lisp-ppcre/template diff --git a/srcpkgs/common-lisp-ppcre/template b/srcpkgs/common-lisp-ppcre/template new file mode 100644 index 000000000000..97b1aaf1c60e --- /dev/null +++ b/srcpkgs/common-lisp-ppcre/template @@ -0,0 +1,23 @@ +# Template file for 'common-lisp-ppcre' +pkgname=common-lisp-ppcre +version=2.1.1 +revision=1 +build_style=fetch +hostmakedepends="tar curl" +short_desc="Common Lisp regular expression library" +maintainer="ctoid " +license="BSD-2-Clause" +homepage="https://edicl.github.io/cl-ppcre/" +distfiles="https://github.com/edicl/cl-ppcre/archive/refs/tags/v${version}.tar.gz" +checksum="89631179b71648d9e6c565a928f6896a9d5742aa2083b9c1b705fe0b45d85def" + +_LIBRARY_DIR=/usr/share/common-lisp/source/cl-ppcre + +do_install() { + tar -xzvf v${version}.tar.gz + cd cl-ppcre-${version} + curl -O "https://raw.githubusercontent.com/edicl/cl-ppcre/master/LICENSE" + vlicense LICENSE + vmkdir $_LIBRARY_DIR + vcopy * $_LIBRARY_DIR +}