summaryrefslogtreecommitdiffstats
path: root/testing/mg
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mg')
-rw-r--r--testing/mg/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/mg/APKBUILD b/testing/mg/APKBUILD
new file mode 100644
index 000000000..a695ec546
--- /dev/null
+++ b/testing/mg/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor:
+# Maintainer:
+pkgname=mg
+pkgver=20090107
+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"
+license="public-domain BSD"
+depends=
+makedepends="ncurses-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://homepage.boetes.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
+
+# append extra dependencies to -dev subpackage
+# remove if not used.
+# depends_dev="somepackage-dev"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+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
+
+ # remove the 2 lines below (and this) if there is no init.d script
+ # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="f25a139da44c3a2f760ffec531bd996e mg-20090107.tar.gz"