aboutsummaryrefslogtreecommitdiffstats
path: root/main/mg/APKBUILD
blob: 18e910cacab4f22e1ef7df93614a458af2a4445f (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
33
34
# Contributor: Lee Hinman <hinman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mg
pkgver=20110103
pkgrel=0
pkgdesc="mg is Micro GNU/emacs, this is a portable version of the mg maintained by the OpenBSD team."
url="http://homepage.boetes.org/software/mg"
arch="all"
license="public-domain BSD"
depends=
makedepends="ncurses-dev"
install=
subpackages="$pkgname-doc"
source="http://homepage.boetes.org/software/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	sed -i -e '/^CFLAGS/s/-Werror//' Makefile.in
}

build() {
	cd "$_builddir"
	./configure
	make prefix=/usr mandir=/usr/share/man || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" prefix=/usr mandir=/usr/share/man install
}

md5sums="41bb2f2979e9a98eb72828282ae2f2ea  mg-20110103.tar.gz"