blob: b622d513f2d669394beb51f1a26995394e918f7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=cl-split-sequence
_pkgname="${pkgname#cl-}"
pkgver=2.0.1
pkgrel=1
pkgdesc='Splits a sequence into a list of subsequences'
arch=('any')
url='https://github.com/sharplispers/split-sequence'
license=('MIT')
depends=('common-lisp' 'cl-asdf')
makedepends=('git')
checkdepends=('sbcl' 'cl-fiveam')
_commit='e1b91281e13e7e1490fdcaf7e8aeda04759ec3b7'
source=(
"$pkgname::git+$url#commit=$_commit"
'run-tests.lisp'
)
b2sums=('SKIP'
'93e14dac945dfd1331f3ec12a8489c2361544f59e0fc76157ce0223955dc53e722655fee9e606197251251ba499bc602d6492691477a8bbe3dd78d42418e3cc9')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
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
install -vDm644 -t "$pkgdir/usr/share/common-lisp/source/$_pkgname" ./*.{lisp,asd}
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 original-message.txt
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|