aboutsummaryrefslogtreecommitdiffstats
path: root/main/mg/APKBUILD
blob: e6c83714e730939a68e2e62c84f8443929294624 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Lee Hinman <hinman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mg
pkgver=20110905
pkgrel=1
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
	musl-fixes.patch
	"

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

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	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 INSTALL=install DESTDIR="$pkgdir" prefix=/usr \
		mandir=/usr/share/man install || return 1
	install -Dm644 tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
}

md5sums="2de35316fa8ebafe6003efaae70b723e  mg-20110905.tar.gz
00e7d303d5a4f163be92adc1e8a26a26  musl-fixes.patch"
sha256sums="1cd37d7e6a3eecc890a5718c38b8f38495057ba93856762a756ccee2f9618229  mg-20110905.tar.gz
22b330621dcbc587bae376433f77598e6fed2768f8ab31134d832a7b430d59be  musl-fixes.patch"
sha512sums="b490a5a3526d35839353e138f33ac924c5afbbf7e5c9faa20ceccb82e1dc1e6a3f0726b32bac7d43dcf8a410b1b8525067da5557cf669c52a9e32d1d2f45a8a4  mg-20110905.tar.gz
56cbefd1806f5194765f12ee3901d111518706551201add819912c3539cab86cda1d4b3a8b74331da3840a35d2576384da80eafe6c9b8271d04b25ea730a5605  musl-fixes.patch"