# Maintainer: Eirik Furuseth <alpine@heplaphon.com>
pkgname=hyx
pkgver=2024.02.29
pkgrel=0
pkgdesc="Minimalistic, but powerful console hex editor"
url="https://yx7.cc/code/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
source="https://yx7.cc/code/hyx/hyx-$pkgver.tar.xz"

build() {
	make
}

check() {
	# no test suite, but let's at least do a minimal test of the binary
	./hyx --version
}

package() {
	install -Dm0755 hyx -t "$pkgdir"/usr/bin/

	install -Dm0644 license.txt -t "$pkgdir"/usr/share/licenses/"$pkgname"/
}

sha512sums="
b5c17b045d1c97106212745b1bb4c4052cfe7ac5a28ec0a2240764785410d7e68292d0ff976fbdc58172cd9433ce49b1cad89b767e09d5d6207088a6a60b4e85  hyx-2024.02.29.tar.xz
"
