aports/main/mg/APKBUILD
2011-06-08 14:07:31 +00:00

37 lines
940 B
Plaintext

# Contributor: Lee Hinman <hinman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mg
pkgver=20110120
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"
_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 INSTALL=install DESTDIR="$pkgdir" prefix=/usr \
mandir=/usr/share/man install || return 1
install -Dm644 tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
}
md5sums="f2fa8016a491aa2a9d4c5698c593f31b mg-20110120.tar.gz"