# Maintainer: Jesus E. pkgname=mg pkgver=3.7 pkgrel=1 pkgdesc="Micro Emacs" arch=('i686' 'x86_64') license=('Unlicense') url='https://github.com/troglobit/mg' depends=('ncurses') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/troglobit/mg/archive/refs/tags/v${pkgver}.tar.gz") sha512sums=('482a13b3eafed7249d544fcb0c4aa4a93bd7fc079deef60b8aaca90a690cc1287b9b3e0376947ac6fac35118dd01087f5a16b049725e13a5e84dcc216aaa74fb') prepare() { cd "$pkgname-$pkgver" ./autogen.sh } build() { cd "$pkgname-$pkgver" ./configure \ --prefix=/usr make } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -Dm644 UNLICENSE -t "$pkgdir/usr/share/licenses/$pkgname" }