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
|
2021-02-10 00:41:12 +00:00
|
|
|
pkgver=0.2
|
2020-01-29 01:21:31 +00:00
|
|
|
pkgrel=1
|
2018-08-09 12:47:07 +00:00
|
|
|
pkgdesc='Simple purely functional lisp'
|
|
|
|
url='https://gitlab.com/owl-lisp/owl.git'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('MIT')
|
|
|
|
depends=('glibc')
|
2019-05-13 23:20:27 +00:00
|
|
|
source=(https://gitlab.com/owl-lisp/owl/-/archive/v${pkgver}/owl-v${pkgver}.tar.gz)
|
2021-02-10 00:41:12 +00:00
|
|
|
sha256sums=('9fed7b4907883910f5a7b8d713e1e7334b20d432c5d52611b34e23b19b7edfb1')
|
|
|
|
b2sums=('054a06d33554cc31f5e1c756bf3ff5ea4fb5cec220048fb939aa9dcd19c586cef54ae8ddc80e1ee8befedfa2e42fc1bf9ea4bcfe37e6743154ff678346444e87')
|
2018-08-09 12:47:07 +00:00
|
|
|
|
|
|
|
prepare() {
|
2019-05-13 23:20:27 +00:00
|
|
|
cd owl-v${pkgver}
|
2019-05-12 19:30:38 +00:00
|
|
|
|
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
|
2020-01-29 01:21:31 +00:00
|
|
|
|
|
|
|
# remove failing tests (can't run inside makepkg)
|
|
|
|
rm tests/getpid.sh
|
2018-08-09 12:47:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-05-13 23:20:27 +00:00
|
|
|
cd owl-v${pkgver}
|
2019-05-12 19:30:38 +00:00
|
|
|
make owl documentation
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-05-13 23:20:27 +00:00
|
|
|
cd owl-v${pkgver}
|
|
|
|
make -j1 test fasltest
|
2018-08-09 12:47:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-05-13 23:20:27 +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}"
|
2020-01-29 01:21:31 +00:00
|
|
|
install -Dm 644 README.md doc/manual.md -t "${pkgdir}/usr/share/doc/${pkgname}"
|
2018-08-09 12:47:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|