summaryrefslogtreecommitdiffstats
path: root/cl-sqlite/PKGBUILD
blob: 70d5851786a69acc3f09e6e1a122b06361dc3c35 (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
# Maintainer: Tom Willemse <tom@ryuslash.org>

pkgname=cl-sqlite
pkgver=0.2
pkgrel=1
pkgdesc="A library for interacting with sqlite databases through SQL."
arch=('x86_64')
url="http://common-lisp.net/project/cl-sqlite/"
license=('custom:public domain')
depends=('common-lisp' 'cl-asdf' 'sqlite' 'cl-iterate' 'cl-cffi')
source=("http://common-lisp.net/project/$pkgname/releases/$pkgname-$pkgver.tar.gz")
md5sums=('a4b54941ae3810691645828613287cf0')

prepare() {
    echo "The code is in public domain so you can basically do with it whatever you want." > LICENSE
}

package() {
    local destination="$pkgdir"/usr/share/common-lisp/source/$pkgname
    local source="$srcdir"/$pkgname-$pkgver

    install -d "$destination"
    install -d "$pkgdir"/usr/share/licenses/$pkgname
    install -d "$pkgdir"/etc/common-lisp/source-registry.conf.d/

    install -m 644 "$source"/*.lisp "$destination"
    install -m 644 "$source"/*.asd "$destination"
    install -m 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname

    echo "(:directory \"/usr/share/common-lisp/source/$pkgname\")" \
        > "$pkgdir"/etc/common-lisp/source-registry.conf.d/20-$pkgname.conf
}