# Contributor: Sergiy Stupar # Maintainer: Sergiy Stupar pkgname=hx pkgver=1.0.15 pkgrel=0 pkgdesc="Hex editor for the terminal using plain C99 + POSIX libs" url="https://github.com/krpors/hx" arch="all" license="MIT" install="$pkgname.post-install" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/krpors/hx/archive/v$pkgver.tar.gz broken-makefile.patch " options="!check" # No tests build() { make hx_version="$pkgver" hx_git_hash="alpine-r$pkgrel" PREFIX=/usr } package() { make PREFIX=/usr DESTDIR="$pkgdir" install # rename to avoid conflicts mv "$pkgdir"/usr/bin/hx "$pkgdir"/usr/bin/hx-editor } sha512sums=" ab9f5c3cd91222b181b1e6dafb7a373d5e7d51afb007cc8b96d003c1af0cb60d0db3179a44c1958b62f068c629ab14e169b25e624c5d13b62a351c3342c666a7 hx-1.0.15.tar.gz 1a8d87e6e5f346cebee7f6e7e623e5cb0555e25ddef0fd13ccbaf3a3706c9e4b521be4f88d8621a02ded179a19a4da7e8bd5c8b70c1281b71cdbf49a5c838b97 broken-makefile.patch "