# Contributor: Lee Hinman # Maintainer: Will Sinatra pkgname=mg pkgver=20180927 pkgrel=2 pkgdesc="microscopic EMACS style editor" url="https://github.com/hboetes/mg" arch="all" license="Public-Domain" depends= makedepends="ncurses-dev libbsd-dev bsd-compat-headers" install= subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/hboetes/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" make prefix=/usr mandir=/usr/share/man } package() { cd "$builddir" make INSTALL=install DESTDIR="$pkgdir" prefix=/usr \ mandir=/usr/share/man install mkdir -p "$pkgdir"/usr/share/doc/$pkgname install -m644 README README.md tutorial \ "$pkgdir"/usr/share/doc/$pkgname } sha512sums="08b80bc46603400c9f9cbf247a9854302eb1a0af5c8fcf9bc5e33fe5107fbc81ac157dd3439fe3b5e1e2a761b679404699a0cfc1eeb101cf75e3487469166251 mg-20180927.tar.gz"