2018-08-09 12:47:07 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove makedepends on pandoc
|
|
|
|
|
|
|
|
pkgname=owl-lisp
|
2019-05-12 19:30:38 +00:00
|
|
|
pkgver=0.1.19
|
2018-08-09 12:47:07 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Simple purely functional lisp'
|
|
|
|
url='https://gitlab.com/owl-lisp/owl.git'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('MIT')
|
|
|
|
depends=('glibc')
|
2019-05-12 19:30:38 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/owl-lisp/owl/-/archive/v$pkgver/owl-v$pkgver.tar.gz")
|
|
|
|
sha256sums=('d02b49c3bba48aec8e83040d39a5d4fe7b91c284aaff7bad0f2efd0b97cf2fee')
|
|
|
|
sha512sums=('0cb579f94d4fe1bf4c0923d2d58bb03249d8d9444c3452f261a7485ac0d15c08dbfba2388514b8b8fa93409e49ed346b192760be6bd9dab19f1def4e322be1c7')
|
|
|
|
sha256sums=('d02b49c3bba48aec8e83040d39a5d4fe7b91c284aaff7bad0f2efd0b97cf2fee')
|
|
|
|
sha512sums=('0cb579f94d4fe1bf4c0923d2d58bb03249d8d9444c3452f261a7485ac0d15c08dbfba2388514b8b8fa93409e49ed346b192760be6bd9dab19f1def4e322be1c7')
|
2018-08-09 12:47:07 +00:00
|
|
|
|
|
|
|
prepare() {
|
2019-05-12 19:30:38 +00:00
|
|
|
cd owl-v$pkgver
|
|
|
|
|
2018-08-09 12:47:07 +00:00
|
|
|
# support distro CFLAGS and CPPFLAGS
|
2019-05-12 19:30:38 +00:00
|
|
|
sed -e '/export CFLAGS/d' -e '/CFLAGS =/d' \
|
|
|
|
-e 's|$(CFLAGS)|$(CFLAGS) $(CPPFLAGS)|g' -i Makefile
|
|
|
|
|
2018-08-09 12:47:07 +00:00
|
|
|
# make build reproducible, we compress ourselves
|
|
|
|
sed -e 's|gzip -9|@echo|g' -e 's|\.gz||g' -i Makefile
|
2019-05-12 19:30:38 +00:00
|
|
|
|
|
|
|
# fix missing Makefile entry
|
|
|
|
sed 's|manual.md:|manual.md: bin/ol|' -i Makefile
|
2018-08-09 12:47:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-05-12 19:30:38 +00:00
|
|
|
cd owl-v$pkgver
|
|
|
|
|
|
|
|
make owl documentation
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd owl-v$pkgver
|
|
|
|
|
|
|
|
make test fasltest
|
2018-08-09 12:47:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-05-12 19:30:38 +00:00
|
|
|
cd owl-v$pkgver
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
install -Dm 644 fasl/* -t "$pkgdir/var/lib/$pkgname/fasl"
|
|
|
|
install -Dm 644 LICENCE -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
install -Dm 644 README.md manual.md -t "$pkgdir/usr/share/doc/$pkgname"
|
2018-08-09 12:47:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|