blob: e6c88a733a39e0d43cbbb59ad616eb59a7c05664 (
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
50
|
# Maintainer: MLM-stuff <gfxoxinzh@mozmail.com>
pkgname=imagot-bin
pkgver=0.2.6
pkgrel=1
pkgdesc="An image viewer made in godot (binary release)"
arch=('x86_64' 'aarch64')
url="https://github.com/mlm-games/imagot"
license=('GPL3')
depends=('glibc' 'libx11' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'alsa-lib')
optdepends=('pipewire-pulse: for PipeWire audio support'
'pulseaudio: for PulseAudio audio support')
provides=('imagot')
conflicts=('imagot')
options=('!strip')
source=("https://raw.githubusercontent.com/mlm-games/imagot/main/icon.png")
source_x86_64=("imagot-0.2.6-x64::https://github.com/mlm-games/imagot/releases/download/0.2.6/imagot.x86_64")
source_aarch64=("imagot-0.2.6-arm64::https://github.com/mlm-games/imagot/releases/download/0.2.6/imagot.arm64")
sha256sums=('SKIP')
sha256sums_x86_64=('47358b154eebf72578f6dafe9f443a06ed10d8fdc9fc98e5928560a85ca3683b')
sha256sums_aarch64=('5751bf3eb4c0090f005036a1b9909c311061cb11fd2c091fde7e0c57b8b207a2')
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/imagot-0.2.6-x64" "${pkgdir}/opt/${pkgname}/imagot"
elif [[ $CARCH == "aarch64" ]]; then
install -Dm755 "$srcdir/imagot-0.2.6-arm64" "${pkgdir}/opt/${pkgname}/imagot"
fi
ln -s "/opt/${pkgname}/imagot" "${pkgdir}/usr/bin/imagot"
install -Dm644 "$srcdir/icon.png" "${pkgdir}/usr/share/pixmaps/imagot.png"
install -Dm644 "$srcdir/icon.png" "${pkgdir}/usr/share/icons/imagot.png"
cat > "${pkgdir}/usr/share/applications/imagot.desktop" << DESKTOP_EOF
[Desktop Entry]
Name=Imagot
Exec=imagot
Terminal=false
Type=Application
Icon=imagot
Comment=An image viewer made using godot
Categories=Utility;Office;
StartupNotify=true
DESKTOP_EOF
}
|