blob: 6631e258c5ec369054e550fecd4b311fb0ce25c5 (
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
34
35
36
37
38
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=timecop-bin
_appname=ca.hamaluik.Timecop
pkgver=1.8.0
pkgrel=8
pkgdesc='A time tracking app that respects your privacy and the gets the job done without being fancy.'
arch=(
'aarch64'
'x86_64'
)
url="https://timecop.app/"
_ghurl="https://github.com/hamaluik/timecop"
license=('Apache-2.0')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'gtk3'
)
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.zip::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}-linux-aarch64.tar.xz")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.zip::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}-linux-x86_64.tar.xz")
source=("${pkgname%-bin}.sh")
sha256sums=('89d44211b9d8efc96b5133c33e6be3752fd8c1a9207dfa63d216e0005474fb5f')
sha256sums_aarch64=('cf376f25cde81d5299c4f543eee15380450470512630ae28697557ddea77bd47')
sha256sums_x86_64=('c2a00bdcb9a32eeaa566d0f1de4d1253460761abe358767209b441748818233c')
build() {
sed -e "s|@appname@|${pkgname%-bin}|" \
-e "s|@runname@|${pkgname%-bin}|g" \
-i "${srcdir}/${pkgname%-bin}.sh"
sed "s|${_appname}|${pkgname%-bin}|g" -i "${srcdir}/${pkgname%-bin}-linux-${CARCH}/${_appname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/opt/${pkgname%-bin}"
cp -r "${srcdir}/${pkgname%-bin}-linux-${CARCH}/bin/"* "${pkgdir}/opt/${pkgname%-bin}"
install -Dm644 "${srcdir}/${pkgname%-bin}-linux-${CARCH}/${_appname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-bin}.svg"
install -Dm644 "${srcdir}/${pkgname%-bin}-linux-${CARCH}/${_appname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/${pkgname%-bin}-linux-${CARCH}/${_appname}.appdata.xml" "${pkgdir}/usr/share/appdata/${pkgname%-bin}.appdata.xml"
}
|