aboutsummaryrefslogtreecommitdiffstats
path: root/main/mg/APKBUILD
blob: 4a8ebd49ea0b7a0336c908f5dd2df39ace9e8c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Lee Hinman <hinman@gmail.com>
# Maintainer: Cág <ca6c@bitmessage.ch>
pkgname=mg
pkgver=20180927
pkgrel=0
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
	install -Dm644 tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
}

sha512sums="08b80bc46603400c9f9cbf247a9854302eb1a0af5c8fcf9bc5e33fe5107fbc81ac157dd3439fe3b5e1e2a761b679404699a0cfc1eeb101cf75e3487469166251  mg-20180927.tar.gz"