[arch-commits] Commit in mg/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 21:23:49 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:23:49
  Author: felixonmars
Revision: 660388

archrelease: copy trunk to community-staging-x86_64

Added:
  mg/repos/community-staging-x86_64/
  mg/repos/community-staging-x86_64/PKGBUILD
    (from rev 660386, mg/trunk/PKGBUILD)
  mg/repos/community-staging-x86_64/cleanup.patch
    (from rev 660387, mg/trunk/cleanup.patch)

---------------+
 PKGBUILD      |   34 ++++++++++++++++++++++++++++++++++
 cleanup.patch |   13 +++++++++++++
 2 files changed, 47 insertions(+)

Copied: mg/repos/community-staging-x86_64/PKGBUILD (from rev 660386, mg/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:23:49 UTC (rev 660388)
@@ -0,0 +1,34 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Hannes Rist <hrist at phreeknet.org>
+
+pkgname=mg
+pkgver=20180824
+pkgrel=2
+pkgdesc="Micro GNU/emacs, this is a portable version of the mg maintained by the OpenBSD team."
+arch=('x86_64')
+url="https://homepage.boetes.org/software/mg/"
+depends=('ncurses' 'libbsd')
+license=('custom')
+#source=("https://homepage.boetes.org/software/mg/mg-$pkgver.tar.gz")
+source=("mg-$pkgver.tgz::https://github.com/hboetes/mg/archive/$pkgver.tar.gz")
+sha256sums=('a51a6ee77a1601cb3003504609a881ee9da8743efd3ddc0a8cf1371b0f93cb9c')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  make prefix=/usr mandir=/usr/share/man
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  mkdir -p "$pkgdir/usr/bin"
+  make install INSTALL=install prefix=/usr mandir=/usr/share/man DESTDIR="$pkgdir" BINDIR=/usr/bin
+
+  mkdir -p "$pkgdir/usr/share/"
+  install -D -m0644 README "$pkgdir/usr/share/licenses/$pkgname/README"
+
+  mkdir -p "$pkgdir/usr/share/doc"
+  install -D -m0644 tutorial "$pkgdir/usr/share/doc/$pkgname/tutorial"
+}

Copied: mg/repos/community-staging-x86_64/cleanup.patch (from rev 660387, mg/trunk/cleanup.patch)
===================================================================
--- community-staging-x86_64/cleanup.patch	                        (rev 0)
+++ community-staging-x86_64/cleanup.patch	2020-07-07 21:23:49 UTC (rev 660388)
@@ -0,0 +1,13 @@
+diff -wbBur mg-20140306/Makefile mg-20140306.my/Makefile
+--- mg-20140306/Makefile	2014-02-20 02:30:17.000000000 +0400
++++ mg-20140306.my/Makefile	2014-03-13 13:12:46.628940661 +0400
+@@ -15,6 +15,9 @@
+ #
+ CFLAGS+=-Wall -DFKEYS -DREGEX -DXKEYS
+ 
++CFLAGS += -I/usr/include/clens -isystem /usr/include/bsd -DLIBBSD_OVERLAY -D__dead -O2
++LDADD+=<------>-lcurses -lutil -lclens -lbsd
++
+ SRCS=	autoexec.c basic.c bell.c buffer.c cinfo.c dir.c display.c \
+ 	echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \
+ 	line.c macro.c main.c match.c modes.c paragraph.c random.c \



More information about the arch-commits mailing list