blob: ee85d7aba1a7f9c4239699d89e885a632efa58d8 (
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=phoenix-auth-bin
_pkgname='Phoenix Auth'
pkgver=0.3.0
pkgrel=1
pkgdesc="A free Open Source desktop 2FA Application.(Prebuilt version)"
arch=('x86_64')
url="https://github.com/liamh101/phoenix-auth"
license=('Apache-2.0')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'gtk3'
'libsoup'
'webkit2gtk'
)
source=(
"${pkgname%-bin}-${pkgver}.rpm::${url}/releases/download/app-v${pkgver}/${pkgname%-bin}-${pkgver}-1.${CARCH}.rpm"
)
sha256sums=('b48ad4bbf07a0dc708d27bf18a02b7cf8230961f749497a9d2bcb579dccf2904')
prepare() {
sed -i "s/Name=${pkgname%-bin}/Name=${_pkgname}/g" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
}
package() {
install -Dm755 "${srcdir}/usr/bin/${pkgname%-bin}" -t "${pkgdir}/usr/bin/${pkgname%-bin}"
_icon_sizes=(32x32 128x128 256x256@2)
for _icons in "${_icon_sizes[@]}";do
install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \
-t "${pkgdir}/usr/share/icons/hicolor/${_icons//@2/}/apps"
done
install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
}
|