summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3050b64874de9b35969a7a0110dafe616790409 (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
# Contributor: mica eked <micaeked at gmail dot com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=blackhole-git
pkgver=0.2.r8.g3f78eb7
pkgrel=2
pkgdesc="module system for gambit-c scheme"
arch=('x86_64')
url="http://github.com/pereckerdal/blackhole"
license=('custom')
depends=('glibc')
makedepends=('git' 'gambit-c')
source=("git+https://github.com/pereckerdal/blackhole.git" compilescript.diff)
sha256sums=('SKIP'
            '3881cce0e7bab230b088ce0674bb7cf54249a051fb95d63631b477ac57603256')

pkgver() {
  cd ${pkgname%-git}
  git describe --tags|sed 's+-+.r+'| tr - . 
}

prepare() {
  cd ${pkgname%-git}
  patch -Np1 < "$srcdir"/compilescript.diff
}

build() {
  cd ${pkgname%-git}
  ./compile.sh
}

package() {
  cd ${pkgname%-git}
  install -D -m755 bh "${pkgdir}/usr/bin/bh"
  install -D -m644 LICENSE \
	  "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}