66 lines
1.9 KiB
Bash
66 lines
1.9 KiB
Bash
name='vial'
|
||
version='0.7.5'
|
||
release='5'
|
||
desc='Vial is an open-source cross-platform (Windows, Linux and Mac) GUI and a QMK fork for configuring your keyboard in real time, similar to VIA'
|
||
desc_ru='Кроссплатформенный GUI с открытым исходным кодом для настройки клавиатуры в реальном времени'
|
||
homepage='https://get.vial.today/'
|
||
maintainer='Evgeny Khramov <xpamych@yandex.ru>'
|
||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||
architectures=('amd64')
|
||
license=('GPL2')
|
||
provides=('vial')
|
||
conflicts=('vial' 'vial-bin' 'vial-git')
|
||
|
||
deps=('fuse')
|
||
|
||
deps_alt=('fuse')
|
||
deps_arch=('fuse2')
|
||
deps_debian=("${deps[@]}")
|
||
deps_fedora=("${deps[@]}")
|
||
deps_redos=("${deps[@]}")
|
||
deps_rhel=("${deps[@]}")
|
||
deps_rosa=("${deps[@]}")
|
||
deps_alpine=("${deps[@]}")
|
||
|
||
sources=("https://github.com/vial-kb/vial-gui/releases/download/v${version}/Vial-v${version}-x86_64.AppImage?~archive=false")
|
||
checksums=('SKIP')
|
||
|
||
scripts=(
|
||
['postinstall']='postinstall.sh'
|
||
)
|
||
|
||
prepare() {
|
||
chmod +x Vial-v${version}-x86_64.AppImage
|
||
sleep 5
|
||
./Vial-v${version}-x86_64.AppImage --appimage-extract
|
||
}
|
||
|
||
build() {
|
||
cd ${srcdir}/squashfs-root/
|
||
sed -i -E "s|Exec=Vial|Exec=env DESKTOPINTEGRATION=false /usr/bin/${name}|" ./Vial.desktop
|
||
|
||
chmod -R a-x+rX ./usr
|
||
}
|
||
|
||
package() {
|
||
|
||
install -Dm755 "${srcdir}/Vial-v${version}-x86_64.AppImage" "${pkgdir}/opt/${name}/${name}.AppImage"
|
||
install-desktop ${srcdir}/squashfs-root/Vial.desktop
|
||
|
||
install -dm755 "${pkgdir}/usr/share/"
|
||
cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
|
||
|
||
install -dm755 "${pkgdir}/usr/bin"
|
||
ln -s "${pkgdir}/opt/vial/vial.AppImage" "${pkgdir}/usr/bin/${name}"
|
||
|
||
install -Dm644 "${scriptdir}/99-vial.rules" "${pkgdir}/usr/lib/udev/rules.d/99-vial.rules"
|
||
}
|
||
|
||
files() {
|
||
files-find-bin
|
||
files-find "./opt/vial"
|
||
files-find-share-applications
|
||
files-find-share-icons
|
||
files-find "./usr/lib/udev/rules.d"
|
||
}
|