diff options
author | George Rawlinson | 2022-05-16 08:57:20 +0000 |
---|---|---|
committer | George Rawlinson | 2022-05-16 08:57:20 +0000 |
commit | a1830c4568c56db2dbab38781f5b4c7ae07db652 (patch) | |
tree | 84f45c9f9f34c8012e3408b9fc7cd9fa07ed2944 | |
download | aur-a1830c4568c56db2dbab38781f5b4c7ae07db652.tar.gz |
addpkg: cl-trivial-with-current-source-form 0.1.0.r8-1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f936b76b2c85 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = cl-trivial-with-current-source-form + pkgdesc = A library to help macro writers produce better errors for macro users + pkgver = 0.1.0.r8.g3898e09 + pkgrel = 1 + url = https://github.com/scymtym/trivial-with-current-source-form + arch = any + license = LGPL3 + makedepends = git + depends = common-lisp + depends = cl-asdf + depends = cl-alexandria + source = cl-trivial-with-current-source-form::git+https://github.com/scymtym/trivial-with-current-source-form#commit=3898e09f8047ef89113df265574ae8de8afa31ac + b2sums = SKIP + +pkgname = cl-trivial-with-current-source-form diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9e0fcfeac72a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: George Rawlinson <grawlinson@archlinux.org> + +pkgname=cl-trivial-with-current-source-form +_pkgname="${pkgname#cl-}" +pkgver=0.1.0.r8.g3898e09 +pkgrel=1 +pkgdesc='A library to help macro writers produce better errors for macro users' +arch=('any') +url='https://github.com/scymtym/trivial-with-current-source-form' +license=('LGPL3') +depends=('common-lisp' 'cl-asdf' 'cl-alexandria') +makedepends=('git') +_commit='3898e09f8047ef89113df265574ae8de8afa31ac' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + # first known commit to receive latest version + local _pkgver='0.1.0' + local _pkgcommit='021b16cac6e6ba6a70a24884d6fc93a30e2359a5' + + git tag "$_pkgver" "$_pkgcommit" + + git describe --tags | sed -e 's/^v//' -e 's/-/.r/' -e 's/-/./g' +} + +package() { + cd "$pkgname" + + # create directories + install -vd \ + "$pkgdir/usr/share/common-lisp/source/$_pkgname" \ + "$pkgdir/usr/share/common-lisp/systems" + + # library + cp -vr \ + code \ + version-string.sexp ./*.asd \ + "$pkgdir/usr/share/common-lisp/source/$_pkgname" + + pushd "$pkgdir/usr/share/common-lisp/systems" + ln -s "../source/$_pkgname"/*.asd . + popd + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.org + cp -vr pictures "$pkgdir/usr/share/doc/$pkgname" + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING +} |