Added manpage to PKGBUILD.

This commit is contained in:
ImperatorStorm 2021-12-16 15:59:12 -08:00
parent 0ef2c1b026
commit f7b65b6fda
No known key found for this signature in database
GPG key ID: 6063D5FB1B6B1EC5
2 changed files with 8 additions and 2 deletions

View file

@ -22,6 +22,8 @@ pkgbase = multimc-bin
conflicts = multimc5-git
noextract = multimc-bin-1.6.deb
source = multimc-bin-1.6.deb::https://files.multimc.org/downloads/multimc_1.6-1.deb
source = https://raw.githubusercontent.com/MultiMC/Launcher/develop/launcher/package/ubuntu/multimc/usr/share/man/man1/multimc.1
sha1sums = b943427e5f32f6a41d77a373029731c67571901d
sha1sums = b4f1dfc021fbf6be22b066734364a1f87ed37214
pkgname = multimc-bin

View file

@ -9,8 +9,10 @@ license=('Apache')
depends=('zlib' 'libgl' 'qt5-base' 'qt5-x11extras' 'qt5-svg' 'xorg-xrandr' 'zenity' 'wget')
conflicts=('multimc' 'multimc5' 'multimc5-git')
provides=('multimc' 'multimc5' 'multimc5-git')
source=("$pkgname-$pkgver.deb::https://files.multimc.org/downloads/multimc_$pkgver-$pkgrel.deb")
sha1sums=('b943427e5f32f6a41d77a373029731c67571901d')
source=("$pkgname-$pkgver.deb::https://files.multimc.org/downloads/multimc_$pkgver-$pkgrel.deb"
"https://raw.githubusercontent.com/MultiMC/Launcher/develop/launcher/package/ubuntu/multimc/usr/share/man/man1/multimc.1")
sha1sums=('b943427e5f32f6a41d77a373029731c67571901d'
'b4f1dfc021fbf6be22b066734364a1f87ed37214')
noextract=("$pkgname-$pkgver.deb")
prepare() {
@ -23,6 +25,7 @@ package() {
mkdir -p "$pkgdir/usr/share/metainfo"
mkdir -p "$pkgdir/usr/share/applications"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/man/man1"
cp -R "$srcdir/$pkgname-$pkgver/opt/multimc/" -T "$pkgdir/opt/multimc/"
cp -R "$srcdir/$pkgname-$pkgver/usr/share/metainfo/" -T "$pkgdir/usr/share/metainfo/"
@ -32,5 +35,6 @@ package() {
install -m644 -D "$srcdir/$pkgname-$pkgver/usr/share/metainfo/multimc.metainfo.xml" "$pkgdir/usr/share/metainfo/multimc.metainfo.xml"
install -m644 -D "$srcdir/$pkgname-$pkgver/opt/multimc/icon.svg" "$pkgdir/opt/multimc/icon.svg"
install -m755 -D "$srcdir/$pkgname-$pkgver/opt/multimc/run.sh" "$pkgdir/opt/multimc/run.sh"
install -m755 -D "$srcdir/multimc.1" "$pkgdir/usr/share/man/man1/multimc.1"
ln -s "/opt/multimc/run.sh" "$pkgdir/usr/bin/multimc"
}