summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b1cc378ba0b0bbdbf6600868e9d7b6a7a45f147 (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
# Maintainer: Julian DeMille <jtdemille@demilletech.net>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=cl-alexandria-git
_pkgname=${pkgname#cl-}
_pkgname=${_pkgname%-git}
pkgver=r237.3b849bc
pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
pkgrel=2
pkgdesc="A set of common-lisp help functions"
arch=('any')
url="https://common-lisp.net/project/alexandria/"
license=('custom')
source=('git+https://gitlab.common-lisp.net/alexandria/alexandria.git')
md5sums=('SKIP')
replaces=('cl-alexandria')

package() {
  cd ${_pkgname}
  install -Dm644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
  install -d "$pkgdir"/usr/share/common-lisp/source/${_pkgname}
  install -d "$pkgdir"/usr/share/common-lisp/systems
  
  install -m 644 -t "$pkgdir"/usr/share/common-lisp/source/${_pkgname} *.lisp
  install -m 644 -t "$pkgdir"/usr/share/common-lisp/source/${_pkgname} *.asd

  cd "$pkgdir"/usr/share/common-lisp/systems
  ln -s ../source/${_pkgname}/${_pkgname}.asd .
  ln -s ../source/${_pkgname}/${_pkgname}.asd $pkgname-unicode.asd
}