blob: 6319d82bc7b7a2afcad8e0a3ede39d4d2a8573a7 (
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
|
# Maintainer: AntiApple4life <antiapple at antiapple dot net>
pkgname=alvr-launcher-bin
_pkgname=${pkgname%-bin}
pkgver=20.11.1
pkgrel=3
pkgdesc="Launcher for ALVR. Stream VR games from your PC to your headset via Wi-Fi."
arch=('x86_64')
url="https://github.com/alvr-org/ALVR"
license=('MIT')
depends=('hicolor-icon-theme')
makedepends=('imagemagick')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
source=("https://github.com/alvr-org/ALVR/releases/download/v$pkgver/${_pkgname%-launcher}_launcher_linux.tar.gz"
"${_pkgname}.png"
"${_pkgname}.desktop")
md5sums=('50eca1495c67f30a3ae7447a86dbef92'
'cd2c37fd286efad87b679d50631ca3d7'
'7467d29e1ea2a23a27f5608c7f62afb9')
build() {
cd "$srcdir/${_pkgname%-launcher}_launcher_linux"
for res in 16x16 32x32 48x48 64x64 128x128 256x256; do
mkdir -p "icons/hicolor/${res}/apps/"
magick "$srcdir/${_pkgname}.png" -thumbnail "${res}" -alpha on -background none -flatten "./icons/hicolor/${res}/apps/${_pkgname}.png"
done
}
package() {
cd "$srcdir/${_pkgname%-launcher}_launcher_linux"
mv "ALVR Launcher" ${_pkgname}
install -Dm755 alvr-launcher -t "$pkgdir/usr/bin/"
# Desktop
install -Dm644 "$srcdir/$_pkgname.desktop" -t "$pkgdir/usr/share/applications"
# Icons
install -d "$pkgdir/usr/share/icons/hicolor/"{16x16,32x32,48x48,64x64,128x128,256x256}/apps/
cp -ar icons/* "$pkgdir/usr/share/icons/"
}
|