aboutsummaryrefslogtreecommitdiffstats
path: root/main/mg/APKBUILD
blob: d2f231038eef9fc1c4a4dd14176e35c8993de4bb (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
30
31
32
# Contributor: Lee Hinman <hinman@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
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"