summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a35219d0910b0a9b2e8abfce56b71aee49f3d331 (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
pkgname=gauche-full
pkgver=0.9.14
pkgrel=1
pkgdesc="R7RS Scheme implementation developed to be a handy script interpreter"
arch=('x86_64')
url='https://practical-scheme.net/gauche/'
depends=('libatomic_ops' 'libxcrypt' 'slib' 'mbedtls')
makedepends=('gauche')
license=('BSD')
provides=('gauche')
conflicts=('gauche' 'gauche-git')
source=("https://github.com/shirok/Gauche/releases/download/release${pkgver//./_}/Gauche-${pkgver}.tgz")
b2sums=('cb747a16037167a95a543e324b53a48e3cb4dd372e9f6cc00603b7072b902c839248fbf3e9926360a2732fcf4bc0caa16a4ea1ad757e84d5d597ef4bdfa2592f')

build() {
  cd Gauche-$pkgver
  BUILD_GOSH=/usr/bin/gosh
  CFLAGS+=' -ffat-lto-objects -w'
  ./configure --prefix=/usr --enable-multibyte=utf-8 --enable-threads=pthreads \
    --with-slib=/usr/share/slib --with-tls=mbedtls
  make
}

package() {
  cd Gauche-$pkgver
  make DESTDIR="$pkgdir" install-pkg install-doc
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  touch -d "$_info_page_date" "$pkgdir"/usr/share/info/gauche-ref*info*.gz
}