Subject: [PATCH] community/myrepos: fix wrong manpage path

From: Thiago Perrotta <[email-masked]>
Date: Mon, 3 Jan 2022 00:47:02 -0500

Currently if one does `man mr` it fails with "man: No entry for mr in
the manual."

This commit correctly places it in man1/.

The APKBUILD has been simplified to be closer as intended by upstream
with `make install`.

Signed-off-by: Thiago Perrotta <[email-masked]>
---
 community/myrepos/APKBUILD | 22 +++-------------------
 1 file changed, 3 insertions(+), 19 deletions(-)

diff --git a/community/myrepos/APKBUILD b/community/myrepos/APKBUILD
index 655671c443..55183526bf 100644
--- a/community/myrepos/APKBUILD
+++ b/community/myrepos/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Fabian Affolter <[email-masked]>
 pkgname=myrepos
 pkgver=1.20180726
-pkgrel=0
+pkgrel=1
 pkgdesc="A multiple repository management tool"
 url="https://git.joeyh.name/git/myrepos.git"
 arch="noarch"
@@ -21,24 +21,8 @@ check() {
 }
 
 package() {
-	install -Dm755 mr "$pkgdir"/usr/bin/mr
-	cd "$builddir"/lib
-	for file in git-fake-bare git-svn unison; do
-		install -Dpm 0644 $file \
-		"$pkgdir"/usr/share/$pkgname/$file
-	done
-}
-
-doc() {
-	cd "$builddir"
-	mkdir -p "$subpkgdir"/usr/share/man
-	mv "$builddir"/*.1 "$subpkgdir"/usr/share/man/
-	# Sample configuration files
-	for file in mrconfig mrconfig.complex; do
-		install -Dpm 0644 $file \
-			"$subpkgdir"/usr/share/doc/$pkgname/$file
-	done
-	default_doc
+	make DESTDIR="$pkgdir" install
+	install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README
 }
 
 sha512sums="cf39208ecf1fc4008cf29c1585d33e9b17dc08350d2bc816a4ce0b4e12eaceffcf7bfbbf2036a70ac2aa979070da601e422ccbedd824f33354b20cfe3a988fef  myrepos-1.20180726.tar.gz"
-- 
2.34.1