summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4035342e59aabe44465207da6b0a48dba65847bb (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
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=punt-git
pkgver=20090731
pkgrel=1
pkgdesc="A simple sexp-based programming language."
arch=('i686' 'x86_64')
#url="http://punt.archuser.com"
url="https://bbs.archlinux.org/viewtopic.php?id=73888"
license=('GPL3')
makedepends=('git')
source=("git+https://github.com/peasantoid/punt.git")
md5sums=('SKIP')

_gitname="punt"

pkgver() {
  cd "$_gitname"
  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

build() {
  cd "$_gitname"

  sed -e 's|/usr/local|/usr|' -i make
  ./make
}

package() {  
  cd "$_gitname"
  install -d "$pkgdir/usr/"{bin,lib/punt}
  install -m755 build/punt/punt "$pkgdir/usr/bin"
  install -m644 build/modules/*.so "$pkgdir/usr/lib/punt/"
}