# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=oed
pkgver=7.4
pkgrel=0
pkgdesc="Portable version of the OpenBSD ed text editor"
url="https://github.com/ibara/oed"
arch="all"
license="BSD-2-Clause AND ISC"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="https://github.com/ibara/oed/archive/refs/tags/oed-$pkgver.tar.gz"
builddir="$srcdir/oed-oed-$pkgver"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--program-name=$pkgname
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1abb5bacf7a0b7485b27e94bf713af3afb536d7ff8d10eb6d786b0f004deb8c8e9932e4fc72d4e8076787e55bf6aab64d661437ed5e39c3bfc7f6a91dadfe6d6  oed-7.4.tar.gz
"
