blob: 4c0197196296b0dfef9601df2c4dfe63fe9ae36c (
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
|
# AUR Maintainer: Malthbern
# Contributers: AstroDogeDX, kafeijao, Malthbern
_pkgname=cvrx
pkgname=${_pkgname}-appimage
pkgver=1.2.4
pkgrel=2
pkgdesc='A standalone companion app for ChilloutVR that expands the user experience! (binary AppImage version)'
arch=('x86_64')
url='https://github.com/AstroDogeDX/CVRX'
license=('MIT')
makedepends=('util-linux' 'findutils')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
options=(!strip)
_appimage="${_pkgname}-${pkgver}.AppImage"
source=("https://github.com/Malthbern/CVRX-Linux/releases/download/v${pkgver}/${_appimage}")
sha256sums=("d88422ceaf67396dcb090417d76423f354aa3d8534b196019c654d78846e5420")
prepare() {
# Copying AppImage in case $SRCDEST is mounted with noexec
cp ${_appimage} ${_appimage}.copy
chmod +x ${_appimage}.copy
./${_appimage}.copy --appimage-extract
rm ${_appimage}.copy
find squashfs-root/ \! -type d -exec rename ${_pkgname} ${_pkgname} \{\} \;
find squashfs-root/ -type l -exec rename --symlink ${_pkgname} ${_pkgname} \{\} \;
}
build() {
sed -i -E "s|Exec=AppRun|Exec=${_pkgname}|" squashfs-root/${_pkgname}.desktop
sed -i -E "s|Name=.*$|Name=CVRX|" squashfs-root/${_pkgname}.desktop
sed -i -E "s|^Icon=.*$|Icon=${_pkgname}|" squashfs-root/${_pkgname}.desktop
}
package() {
install -Dpm755 "${_appimage}" "${pkgdir}/opt/${_pkgname}/${_appimage}"
install -d "${pkgdir}/usr/bin"
ln -s "../../opt/${_pkgname}/${_appimage}" "${pkgdir}/usr/bin/${_pkgname}"
# Install desktop entry and icon
install -Dpm644 "squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -Dpm644 "squashfs-root/${_pkgname}.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png"
}
|