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

pkgname=gush-git
pkgver=0.1.0.r1.g755f5b4
pkgrel=2
epoch=1
pkgdesc="Genetic programming / stack based language on top of Guile"
arch=('x86_64')
url="https://gitlab.com/dustyweb/gush"
license=('GPL')
depends=('guile')
makedepends=('git')
provides=('gush')
conflicts=('gush')
source=("git+https://gitlab.com/dustyweb/gush.git")
md5sums=('SKIP')
options=('!makeflags')

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

prepare() {
  cd "${pkgname%-git}"
  sed -i '71s+pre-inst-env.in+./pre-inst-env+' Makefile.am
  sed -i '72s+boot+./boot+' Makefile.am
}

build() {
  cd "${pkgname%-git}"
  autoreconf -vif
  ./configure --prefix=/usr
  make
}

package() {
  cd "${pkgname%-git}"
  make DESTDIR="$pkgdir/" install
}