summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd10648c70fc07ae3fb211dafaa235475372812f (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=wart-git
pkgver=4134.789671d7
pkgrel=1
pkgdesc="A small, readable lisp with thorough unit tests and extensible functions/macros."
arch=('i686' 'x86_64')
url="https://github.com/akkartik/wart"
license=('Artistic2.0')
depends=('gcc-libs' 'bash')
makedepends=('git')
provides=('wart')
conflicts=('wart')
source=('git://github.com/akkartik/wart.git' 'wart.sh')
md5sums=('SKIP'
         '4be136701bd4c80ff98b907e70d9131b')
optdepends=('which: for using rlwrap'
  'rlwrap: for better REPL editing'
  'zsh: for using zsh')
options=('!strip' '!makeflags')
_gitname="wart"

pkgver() {
 cd $_gitname
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $_gitname
  make 
}

package() {
  install -d "$pkgdir"/usr/share/$_gitname
  cp -r $_gitname "$pkgdir"/usr/share
  # avoid having a binary under /usr/share
  install -Dm755 "$pkgdir"/usr/share/wart/wart_bin \
    "$pkgdir"/usr/bin/wart_bin
  rm "$pkgdir"/usr/share/wart/wart_bin
  install -Dm755 "$srcdir"/wart.sh "$pkgdir"/usr/bin/wart
  rm -r "$pkgdir"/usr/share/wart/.git
}