blob: b34f7d09175ad4e1aa8b427be187ad61f3c11591 (
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
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: MLM-stuff <gfxoxinzh@mozmail.com>
pkgname=pomodorot-bin
pkgver=0.13.2
pkgrel=1
pkgdesc="A simple pomodoro timer application (binary release)"
arch=('x86_64' 'aarch64')
url="https://github.com/mlm-games/pomodorot"
license=('GPL3')
depends=('glibc' 'libx11' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'alsa-lib')
optdepends=('pipewire-pulse: for PipeWire audio support'
'pulseaudio: for PulseAudio audio support')
provides=('pomodorot')
conflicts=('pomodorot')
options=('!strip')
source=("https://raw.githubusercontent.com/mlm-games/pomodorot/main/icon.png")
source_x86_64=("pomodorot-0.13.2-x64::https://github.com/mlm-games/pomodorot/releases/download/0.13.2/pomodorot.x86_64")
source_aarch64=("pomodorot-0.13.2-arm64::https://github.com/mlm-games/pomodorot/releases/download/0.13.2/pomodorot.arm64")
sha256sums=('SKIP')
sha256sums_x86_64=('f4904c9a513e438b65bf1bb7aece4c41d12eb3a5137cd2645f9f51ea227aae15')
sha256sums_aarch64=('9ec4b2a65f14a803f29667c013be91587cdcb33b65435aa1f4b1fbc6f612c4be')
package() {
install -d "${pkgdir}/usr/bin/"
install -d "${pkgdir}/usr/share/applications/"
install -d "${pkgdir}/usr/share/pixmaps/"
install -d "${pkgdir}/opt/${pkgname}/"
if [[ $CARCH == "x86_64" ]]; then
install -Dm755 "$srcdir/pomodorot-0.13.2-x64" "${pkgdir}/opt/${pkgname}/pomodorot"
elif [[ $CARCH == "aarch64" ]]; then
install -Dm755 "$srcdir/pomodorot-0.13.2-arm64" "${pkgdir}/opt/${pkgname}/pomodorot"
fi
ln -s "/opt/${pkgname}/pomodorot" "${pkgdir}/usr/bin/pomodorot"
install -Dm644 "$srcdir/icon.png" "${pkgdir}/usr/share/pixmaps/pomodorot.png"
cat > "${pkgdir}/usr/share/applications/pomodorot.desktop" << DESKTOP_EOF
[Desktop Entry]
Name=Pomodorot
Exec=pomodorot
Terminal=false
Type=Application
Icon=pomodorot
Comment=A simple pomodoro timer application
Categories=Utility;Office;
StartupNotify=true
DESKTOP_EOF
}
|