66 lines
1.9 KiB
Bash
66 lines
1.9 KiB
Bash
name='vial-ergohaven'
|
||
version='0.7.5'
|
||
release='1'
|
||
desc='Ergohaven fork of Vial — open-source GUI for configuring your keyboard in real time'
|
||
desc_ru='Форк Vial от Ergohaven — GUI с открытым исходным кодом для настройки клавиатуры в реальном времени'
|
||
homepage='https://github.com/ergohaven/vial-gui'
|
||
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[@]}")
|
||
|
||
_tag='0.7.5-eh-2026-01-04'
|
||
sources=("https://github.com/ergohaven/vial-gui/releases/download/${_tag}/Vial-x86_64.AppImage?~archive=false")
|
||
checksums=('SKIP')
|
||
|
||
scripts=(
|
||
['postinstall']='postinstall.sh'
|
||
)
|
||
|
||
prepare() {
|
||
chmod +x Vial-x86_64.AppImage
|
||
sleep 5
|
||
./Vial-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-x86_64.AppImage" "${pkgdir}/opt/${name}/${name}.AppImage"
|
||
install-desktop ${srcdir}/squashfs-root/Vial.desktop
|
||
|
||
install -dm755 "${pkgdir}/usr/share/"
|
||
cp -r --no-preserve=ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
|
||
|
||
install -dm755 "${pkgdir}/usr/bin"
|
||
ln -s "${pkgdir}/opt/${name}/${name}.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/${name}/**"
|
||
files-find-share "applications"
|
||
files-find-share "icons"
|
||
files-find "./usr/lib/udev/rules.d/**"
|
||
}
|