diff options
author | George Rawlinson | 2022-05-16 08:40:28 +0000 |
---|---|---|
committer | George Rawlinson | 2022-05-16 08:40:28 +0000 |
commit | 601645bacaa6289887475d60e37b93c4f2424952 (patch) | |
tree | 1949410b92a56246dfcfd92b9bf0975a03be7e18 | |
download | aur-601645bacaa6289887475d60e37b93c4f2424952.tar.gz |
addpkg: cl-fiasco r310-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 54 | ||||
-rw-r--r-- | run-tests.lisp | 11 |
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..308d7b26a159 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = cl-fiasco + pkgdesc = A Common Lisp test framework that treasures your failures + pkgver = r310.gbb47d2f + pkgrel = 1 + url = https://github.com/joaotavora/fiasco + arch = any + license = MIT + checkdepends = sbcl + makedepends = git + depends = common-lisp + depends = cl-asdf + depends = cl-alexandria + depends = cl-trivial-gray-streams + source = cl-fiasco::git+https://github.com/joaotavora/fiasco#commit=bb47d2fef4eb24cc16badc1c9a73d73c3a7e18f5 + source = run-tests.lisp + b2sums = SKIP + b2sums = 81f24fccac6aae28374f3a7cf8e3bcc0ce148bb41ae3c4831bede57dd4068103fe4e4bac4905a702a560027d4fa02434eea9bafb07441fe3e626785e3df0c169 + +pkgname = cl-fiasco diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..121c629370d3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: George Rawlinson <grawlinson@archlinux.org> + +pkgname=cl-fiasco +_pkgname="${pkgname#cl-}" +pkgver=r310.gbb47d2f +pkgrel=1 +pkgdesc='A Common Lisp test framework that treasures your failures' +arch=('any') +url='https://github.com/joaotavora/fiasco' +license=('MIT') +depends=('common-lisp' 'cl-asdf' 'cl-alexandria' 'cl-trivial-gray-streams') +makedepends=('git') +checkdepends=('sbcl') +_commit='bb47d2fef4eb24cc16badc1c9a73d73c3a7e18f5' +source=( + "$pkgname::git+$url#commit=$_commit" + 'run-tests.lisp' +) +b2sums=('SKIP' + '81f24fccac6aae28374f3a7cf8e3bcc0ce148bb41ae3c4831bede57dd4068103fe4e4bac4905a702a560027d4fa02434eea9bafb07441fe3e626785e3df0c169') + +pkgver() { + cd "$pkgname" + + printf 'r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +check() { + cd "$pkgname" + + sbcl --script ../run-tests.lisp +} + +package() { + cd "$pkgname" + + # create directories + install -vd \ + "$pkgdir/usr/share/common-lisp/source/$_pkgname" \ + "$pkgdir/usr/share/common-lisp/systems" + + # library + cp -vr src test "$_pkgname.asd" "$pkgdir/usr/share/common-lisp/source/$_pkgname" + + pushd "$pkgdir/usr/share/common-lisp/systems" + ln -s "../source/$_pkgname/$_pkgname.asd" . + popd + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENCE +} diff --git a/run-tests.lisp b/run-tests.lisp new file mode 100644 index 000000000000..15951ca09c37 --- /dev/null +++ b/run-tests.lisp @@ -0,0 +1,11 @@ +(require "asdf") + +(push (uiop/os:getcwd) asdf:*central-registry*) + +(asdf:load-system "fiasco") +(asdf:load-system "fiasco-self-tests") + +(uiop:quit (if (fiasco:run-tests + (quote (:fiasco-basic-self-tests + :fiasco-intro-example + :fiasco-suite-tests))) 0 1)) |