blob: 48277fc287103ca633f8ee2db66dbfb1c6d37624 (
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
33
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=tinytotp-bin
_pkgname=TinyTotp
pkgver=4.0.1
pkgrel=1
pkgdesc="A Totp Client.(Prebuilt version)"
arch=('x86_64')
url="https://github.com/kryptonbutterfly/TinyTotp"
license=('Apache-2.0')
conflicts=("${pkgname%-bin}")
prodives=("${pkgname%-bin}=${pkgver}")
depends=(
'xdg-utils'
'java-runtime>=18'
)
source=(
"${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.deb"
)
sha256sums=('37a473d9f6d413b7e04a92730b1cf2052ee48510361332ca8191e6b795d381b9')
build() {
bsdtar -xf "${srcdir}/data."*
sed -e "
s/\/usr\/share\/${_pkgname}\/${_pkgname}.jar/\/usr\/lib\/${pkgname%-bin}\/${_pkgname}.jar/g
s/\/usr\/share\/${_pkgname}\/icon.svg/${pkgname%-bin}/g
5i\Categories=Utility;
" -i "${srcdir}/usr/share/applications/${_pkgname}.desktop"
}
package() {
install -Dm644 "${srcdir}/usr/share/${_pkgname}/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/usr/share/${_pkgname}/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/usr/share/${_pkgname}/icon.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-bin}.svg"
install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
}
|