mihomo-party/aur/mihomo-party-bin/PKGBUILD

31 lines
1.6 KiB
Bash
Raw Normal View History

2024-08-07 14:00:14 +08:00
pkgname=mihomo-party-bin
_pkgname=mihomo-party
pkgver=0.1.3
pkgrel=1
pkgdesc="Another Mihomo GUI."
arch=('x86_64' 'aarch64')
2024-09-13 20:24:52 +08:00
url="https://github.com/mihomo-party-org/mihomo-party"
2024-08-07 14:00:14 +08:00
license=('GPL3')
2024-08-08 10:28:20 +08:00
conflicts=("$_pkgname" "$_pkgname-git" "$_pkgname-electron" "$_pkgname-electron-bin")
2024-08-07 14:00:14 +08:00
conflicts=("mihomo-party-git" 'mihomo-party')
2024-08-08 09:10:23 +08:00
depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'at-spi2-core' 'util-linux-libs' 'libsecret')
2024-08-07 14:00:14 +08:00
optdepends=('libappindicator-gtk3: Allow mihomo-party to extend a menu via Ayatana indicators in Unity, KDE or Systray (GTK+ 3 library).')
install=$_pkgname.install
2024-08-16 14:38:25 +08:00
source=("${_pkgname}.sh")
2024-08-07 14:00:14 +08:00
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")
2024-08-16 14:38:25 +08:00
sha256sums=('f8049c1f26d5a92fbcebd7bebbdedbb3eab53422b21cf6127418251ccd061282')
2024-08-07 14:00:14 +08:00
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
2024-09-26 12:40:32 +08:00
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
sed -i '3s!/opt/mihomo-party/mihomo-party!mihomo-party!' "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
2024-08-07 14:00:14 +08:00
chown -R root:root ${pkgdir}
2024-09-26 12:40:32 +08:00
}