summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 118e3ac9684a27f33d92e91cc3912fb0b97b6ea7 (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
# Maintainer: Patrick McCarty <pnorcks at gmail dot com>

pkgname=guile-smc
pkgver=0.6.3
pkgrel=2
pkgdesc="GNU Guile state machine compiler"
arch=('x86_64')
url="https://github.com/artyom-poptsov/guile-smc"
license=('GPL-3.0-or-later')
depends=('guile' 'guile-lib')
makedepends=('help2man')
source=("https://github.com/artyom-poptsov/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('9e6d9b4c6a145cefc9c671971ffa46685c1f58634ae1f5b23b7d18b0f0b03429')

build() {
  cd "$pkgname-$pkgver"
  autoreconf -fi
  local sitedir=$(guile-config info sitedir)
  ./configure \
    --enable-silent-rules \
    --prefix=/usr \
    --with-guilesitedir=$sitedir
  make
}

check() {
  cd "$pkgname-$pkgver"
  # the "compiler-guile" test currently fails...
  make -k check || :
}

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