mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
29 lines
1.4 KiB
Bash
29 lines
1.4 KiB
Bash
pkgname=mihomo-party-bin
|
|
_pkgname=mihomo-party
|
|
pkgver=0.1.3
|
|
pkgrel=1
|
|
pkgdesc="Another Mihomo GUI."
|
|
arch=('x86_64' 'aarch64')
|
|
url="https://github.com/pompurin404/mihomo-party"
|
|
license=('GPL3')
|
|
conflicts=("mihomo-party-git" 'mihomo-party')
|
|
depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'at-spi2-core' 'util-linux-libs' 'libsecret')
|
|
optdepends=('libappindicator-gtk3: Allow mihomo-party to extend a menu via Ayatana indicators in Unity, KDE or Systray (GTK+ 3 library).')
|
|
makedepends=('nodejs' 'pnpm' 'jq' 'libxcrypt-compat')
|
|
install=$_pkgname.install
|
|
source_x86_64=("${_pkgname}-${pkgver}-x86_64.deb::${url}/releases/download/v${pkgver}/mihomo-party-linux-${pkgver}-amd64.deb")
|
|
source_aarch64=("${_pkgname}-${pkgver}-aarch64.deb::${url}/releases/download/v${pkgver}/mihomo-party-linux-${pkgver}-arm64.deb")
|
|
sha256sums_x86_64=('b8d166f1134573336aaae1866d25262284b0cbabbf393684226aca0fd8d1bd83')
|
|
sha256sums_aarch64=('8cd7398b8fc1cd70d41e386af9995cbddc1043d9018391c29f056f1435712a10')
|
|
|
|
package() {
|
|
bsdtar -xf data.tar.xz -C "${pkgdir}/"
|
|
chmod +x ${pkgdir}/opt/mihomo-party/mihomo-party
|
|
chmod +x ${pkgdir}/opt/mihomo-party/resources/sidecar/mihomo
|
|
chmod +x ${pkgdir}/opt/mihomo-party/resources/sidecar/mihomo-alpha
|
|
cd ${pkgdir}/../..
|
|
install -Dm755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
|
|
sed -i '3s!/opt/mihomo-party/mihomo-party!mihomo-party!' "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
|
|
|
|
chown -R root:root ${pkgdir}
|
|
} |