Subject: [alpine-aports] [PATCH] main/mg: upgrade to 20180408

From: Sascha Paunovic <[email-masked]>
Date: Sat, 16 Jun 2018 11:58:14 +0200

also, modernize and cleanup
---
 main/mg/APKBUILD | 32 +++++++++-----------------------
 1 file changed, 9 insertions(+), 23 deletions(-)

diff --git a/main/mg/APKBUILD b/main/mg/APKBUILD
index 7337df8033..b002325e48 100644
--- a/main/mg/APKBUILD
+++ b/main/mg/APKBUILD
@@ -1,42 +1,28 @@
 # Contributor: Lee Hinman <[email-masked]>
 # Maintainer: Cág <[email-masked]>
 pkgname=mg
-pkgver=20171014
+pkgver=20180408
 pkgrel=0
 pkgdesc="microscopic EMACS style editor"
 url="http://homepage.boetes.org/software/mg"
 arch="all"
 license="Public-Domain"
-depends=
 makedepends="ncurses-dev libbsd-dev bsd-compat-headers"
-install=
 subpackages="$pkgname-doc"
-source="http://homepage.boetes.org/software/mg/$pkgname-$pkgver.tar.gz
-	missing-defines.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
-}
+source="$pkgname-$pkgver.tar.gz::https://github.com/hboetes/$pkgname/archive/$pkgver.tar.gz"
+options="!check" # no test suite
+builddir="$srcdir"/$pkgname-$pkgver
 
 build() {
-	cd "$_builddir"
-	make prefix=/usr mandir=/usr/share/man || return 1
+	cd "$builddir"
+	make prefix=/usr mandir=/usr/share/man
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	make INSTALL=install DESTDIR="$pkgdir" prefix=/usr \
-		mandir=/usr/share/man install || return 1
+		mandir=/usr/share/man install
 	install -Dm644 tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
 }
 
-sha512sums="d55818308421aa523fb30b6e4725bb122f37637a822fabafeba9f9da3b97fd7f6af6431fce3015c969d0e656a48e89ed49b790deefc69fbdbb7e257f8a1aeb56  mg-20171014.tar.gz
-f1967dd33a025e11ff63ba797c2fb64ac0679cd6c09a332241a28e0976b96db467894e1e3573c5bc88b7feaecdb430695aa4f8fa2712b227d0947b3d8b05c97c  missing-defines.patch"
+sha512sums="25fceb18fcbe63010e7a2e107aa5c30356938be2e04ff48869a12b5018dbb83bcf4dc70b03674713516616037247952a51454a28ca418cdc7b020d1f415f8701  mg-20180408.tar.gz"
-- 
2.17.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Cág <[email-masked]>
Date: Sat, 16 Jun 2018 13:55:42 -0400

I already sent one in April (https://patchwork.alpinelinux.org/patch/3935/);
nobody did care enough to push it.

-- 
caóc

---

---

From: Natanael Copa <[email-masked]>
Date: Sun, 17 Jun 2018 06:44:08 +0200

On Sat, 16 Jun 2018 13:55:42 -0400

> nobody did care enough to push it.

Sorry about that. I pushed it now.

Thanks for your patience.

-nc

---