summaryrefslogtreecommitdiff
path: root/community/mg/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mg/PKGBUILD')
-rw-r--r--community/mg/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/mg/PKGBUILD b/community/mg/PKGBUILD
new file mode 100644
index 000000000..cdb1b05e2
--- /dev/null
+++ b/community/mg/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 39953 2011-02-18 23:29:32Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Hannes Rist <hrist@phreeknet.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."
+arch=('i686' 'x86_64')
+url="http://homepage.boetes.org/software/mg/"
+depends=('ncurses')
+license=('custom')
+options=(!libtool)
+source=(http://homepage.boetes.org/software/mg/mg-$pkgver.tar.gz
+ README)
+md5sums=('f2fa8016a491aa2a9d4c5698c593f31b'
+ '8cc5195ad4fabcf7c6782764f9617748')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ sed -i 's|KEYMAP\t\*curmap;|KEYMAP *curmap = NULL;|' extend.c
+
+ ./configure
+ make prefix=/usr
+
+ mkdir -p $pkgdir/usr/bin
+ make install INSTALL=/bin/install prefix=$pkgdir/usr
+
+ mkdir -p $pkgdir/usr/share/
+ mv $pkgdir/usr/man $pkgdir/usr/share/
+ install -D -m0644 $srcdir/README $pkgdir/usr/share/licenses/$pkgname/README
+}