From ca00103ee2a27816f2b422e21104c05908ba5bfe Mon Sep 17 00:00:00 2001 From: dada513 Date: Sat, 29 Jan 2022 08:56:04 +0100 Subject: [PATCH] make packaging based --- BUILD.md | 11 ++++++----- README.md | 32 +++++++++++++++----------------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/BUILD.md b/BUILD.md index 37d700f53..d980fde9e 100644 --- a/BUILD.md +++ b/BUILD.md @@ -63,14 +63,15 @@ make -j$(nproc) install # Optionally specify DESTDIR for packages (i.e. DESTDIR= ### Building a .deb -You need to install the build dependencies first +Requirements: [makedeb](https://docs.makedeb.org/) installed on your system. -```sh -cd packages/debian -./makedeb.sh +``` +git clone https://mpr.makedeb.org/polymc.git +cd polymc +makedeb -s ``` -If everything works correctly, the .deb will be next to the build script, in `PolyMC/packages/debian` +The deb will be located in the directory the repo was cloned in. ### Building a .rpm diff --git a/README.md b/README.md index a95d2aef9..860618adb 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,12 @@ This is a **fork** of the MultiMC Launcher and not endorsed by MultiMC. The Poly ### Arch Linux There are several AUR packages available: -[![polymc](https://img.shields.io/aur/version/polymc?label=aur/polymc)](https://aur.archlinux.org/packages/polymc/) -[![polymc-bin](https://img.shields.io/aur/version/polymc-bin?label=aur/polymc-bin)](https://aur.archlinux.org/packages/polymc-bin/) -[![polymc-git](https://img.shields.io/aur/version/polymc-git?label=aur/polymc-git)](https://aur.archlinux.org/packages/polymc-git/) +[![polymc](https://img.shields.io/badge/aur-polymc-blue)](https://aur.archlinux.org/packages/polymc/) +[![polymc-bin](https://img.shields.io/badge/aur-polymc--bin-blue)](https://aur.archlinux.org/packages/polymc-bin/) +[![polymc-git](https://img.shields.io/badge/aur-polymc--git-blue)](https://aur.archlinux.org/packages/polymc-git/) ```sh -# stable source package +# stable source package: yay -S polymc # stable binary package: yay -S polymc-bin @@ -40,22 +40,19 @@ yay -S polymc-bin yay -S polymc-git ``` -A prebuilt Arch package is available: -[Arch Linux (AMD64)](https://packages.polymc.org/latest/arch/polymc-bin-latest-1-x86_64.pkg.tar.zst) ([SHA256](https://packages.polymc.org/latest/arch/polymc-bin-latest-1-x86_64.pkg.tar.zst.sha256)) - -``` -wget https://packages.polymc.org/latest/arch/polymc-bin-latest-1-x86_64.pkg.tar.zst -sudo pacman -U polymc-bin-latest-1-x86_64.pkg.tar.zst -``` - ### Debian -A prebuilt deb package is available: -[Debian (AMD64)](https://packages.polymc.org/latest/deb/polymc-amd64.deb) ([SHA256](https://packages.polymc.org/latest/deb/polymc-amd64.deb.sha256)) +We use [makedeb](https://docs.makedeb.org/) for our Debian packages. +Several MPR packages are available: + +[![polymc](https://img.shields.io/badge/mpr-polymc-orange)](https://mpr.makedeb.org/packages/polymc) +[![polymc-bin](https://img.shields.io/badge/mpr-polymc--bin-orange)](https://mpr.makedeb.org/packages/polymc-bin) ```sh -wget https://packages.polymc.org/latest/deb/polymc-amd64.deb -sudo apt install ./polymc-amd64.deb +# stable source package: +sudo tap install polymc +# stable binary package: +sudo tap install polymc-bin ``` ### Nix @@ -67,12 +64,13 @@ A [Nix derivation](packages/nix/NIX.md) is available. A Gentoo ebuild is available in the [swirl](https://git.swurl.xyz/swirl/ebuilds) overlay, named `games-action/polymc`. ```sh +# as root: emerge --oneshot eselect-repository eselect-repository enable swirl emaint sync -r swirl emerge polymc # to use latest git version: -sudo tee -a /etc/portage/package.accept_keywords <<< "=games-action/polymc-9999 ~amd64" +sudo tee -a /etc/portage/package.accept_keywords <<< "=games-action/polymc-9999 **" ``` ### Fedora