From b079e7bcbb8e73081ead2e73b3f1609f4b1af053 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Thu, 12 May 2022 21:14:10 +1200 Subject: [PATCH] addpkg: cl-asdf-flv --- cl-asdf-flv/PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 cl-asdf-flv/PKGBUILD diff --git a/cl-asdf-flv/PKGBUILD b/cl-asdf-flv/PKGBUILD new file mode 100644 index 0000000..c32d47f --- /dev/null +++ b/cl-asdf-flv/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: George Rawlinson + +pkgname=cl-asdf-flv +_pkgname="${pkgname#cl-}" +pkgver=2.1 +pkgrel=1 +pkgdesc='cl-asdf extension to provide support for file-local variables' +arch=('any') +url='https://github.com/didierverna/asdf-flv' +license=('custom:FSFAP') #SPDX-ID: FSFAP +depends=('common-lisp' 'cl-asdf') +makedepends=('git' 'sbcl') +_commit='fc5b7399767ca35bfb420bbeb9e08494e441dc69' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^version-//' +} + +prepare() { + cd "$pkgname" + + # extract license + sed -n '/;; Copyright/,/;; without/p' asdf-flv.lisp | sed -e 's/^;; //g' > LICENSE +} + +package() { + cd "$pkgname" + + # create directories + install -vd \ + "$pkgdir/usr/share/common-lisp/source/$_pkgname" \ + "$pkgdir/usr/share/common-lisp/systems" + + # library + install -vDm644 -t "$pkgdir/usr/share/common-lisp/source/$_pkgname" \ + ./*.{lisp,asd} + + pushd "$pkgdir/usr/share/common-lisp/systems" + ln -s "../source/$_pkgname/net.didierverna.asdf-flv.asd" . + popd + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +}