blob: cace72926fb13b5a11116dc1f8195a00a4f0d4e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=pandora-box-bin
_pkgname=Pandora-Box
pkgver=0.2.22
pkgrel=1
pkgdesc="A Simple Mihomo GUI.(Written in Go,prebuilt version)"
arch=('x86_64')
url="https://github.com/snakem982/Pandora-Box"
license=('GPL-3.0-only')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
depends=(
'webkit2gtk-4.1'
'gtk3'
)
makedepends=(
'gendesk'
)
source=(
"${pkgname%-bin}-${pkgver}.zip::${url}/releases/download/v${pkgver}/linux-amd64.zip"
"${pkgname%-bin}-${pkgver}.png::https://raw.githubusercontent.com/snakem982/Pandora-Box/v${pkgver}/frontend/src/assets/images/appicon.png"
)
sha256sums=('b787e671a5d73499d39f7c1073843a932fbc4b7075c775a2bed5f8c9fec77a3f'
'5aa6d3df181607243064ceb3cdb12b59a23e48ca91266323a4d0105484d1c707')
build() {
gendesk -q -f -n --pkgname="${pkgname%-bin}" --pkgdesc="${pkgdesc}" --categories="Network" --name="${pkgname%-bin}" --exec="${pkgname%-bin}"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}-amd64" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/${pkgname%-bin}-${pkgver}.png" "${srcdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
}
|