# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=mrsh
# NOTE: this software is not ready to be moved out of the testing repository
pkgver=0_git20210518
_commit=cd3c3a48055ab4085d83f149ff4b4feba40b40cb
pkgrel=1
pkgdesc="Minimal POSIX shell"
url="https://mrsh.sh/"
license="MIT"
arch="all"
makedepends="meson readline-dev"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-libs"
source="$pkgname-$_commit.tar.gz::https://github.com/emersion/mrsh/archive/$_commit.tar.gz"
builddir="$srcdir/mrsh-$_commit"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a625ac90b1e395b9b464317f1c36211c29cc3b17acd28eaf7c3bb1deed497cae6980360ffa516367b16a2613850e5d6795f2a9838d00dbfba6111fc7522cad98  mrsh-cd3c3a48055ab4085d83f149ff4b4feba40b40cb.tar.gz
"
