34 lines
1 KiB
Bash
34 lines
1 KiB
Bash
# Template file for 'nheko'
|
|
pkgname=nheko
|
|
version=0.4.2
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="git qt5-host-tools qt5-qmake"
|
|
makedepends="lmdb-devel qt5-multimedia-devel qt5-svg-devel qt5-tools-devel"
|
|
short_desc="Desktop client for the Matrix protocol"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/mujx/nheko"
|
|
distfiles="https://github.com/mujx/nheko/archive/v${version}.tar.gz"
|
|
checksum=8a66fb40d75d08dabe61246e89bfb6be9aaee66a96bc9439876de8bfd48fb78f
|
|
|
|
pre_configure() {
|
|
sed -i 's/Werror/Wno-error/g' cmake/CompilerFlags.cmake
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/share/pixmaps
|
|
vmkdir usr/share/applications
|
|
|
|
vbin build/nheko
|
|
|
|
vinstall resources/nheko-256.png 644 usr/share/pixmaps
|
|
vinstall resources/nheko.desktop 644 usr/share/applications
|
|
|
|
local icon_size icon_dir
|
|
for icon_size in 16 32 48 64 128 256 512; do
|
|
icon_dir="usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
|
|
vmkdir "$icon_dir"
|
|
vinstall resources/nheko-${icon_size}.png 644 $icon_dir/nheko.png
|
|
done
|
|
}
|