summaryrefslogtreecommitdiffstats
path: root/cl-alexandria-git/PKGBUILD
blob: 9189d470117cd81614b3598b7ab443c8d2267890 (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
#

_name=alexandria
pkgname=cl-$_name-git
pkgver=20130126
pkgrel=1
pkgdesc="Common Lisp portability library"
arch=('i686' 'x86_64')
url="http://common-lisp.net/project/alexandria/"
license=('custom:public domain')
provides=('cl-alexandria')
conflicts=('cl-alexandria-darcs')
depends=('common-lisp' 'cl-asdf')
makedepends=('git')
source=(git://common-lisp.net/projects/alexandria/alexandria.git)
md5sums=('SKIP')

pkgver()
{
    cd "$srcdir"/"$_name"
    git log -1 --pretty=format:"%cd" --date=short | sed s/-//g
}

# build()
# {
#     cd "$srcdir"/$_name/doc
#     make info
# }

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

    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 "$source"/LICENCE \
        "$pkgdir"/usr/share/licenses/$pkgname
    # install -m 644 "$source"/doc/*.info "$pkgdir"/usr/share/info/

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