2017-05-09 21:18:47 +02:00
|
|
|
# Maintainer: Konstantinos Sideris <siderisk at auth dot gr>
|
2019-05-12 02:28:49 +02:00
|
|
|
# Maintainer: Joseph Donofry <joe at joedonofry dot com>
|
2017-05-09 21:18:47 +02:00
|
|
|
|
|
|
|
pkgname=nheko-git
|
2020-05-15 03:23:42 +02:00
|
|
|
pkgver=0.7.1.r1647.eb4b02e
|
2017-05-09 21:18:47 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Desktop client for the Matrix protocol"
|
2017-08-10 22:36:34 +02:00
|
|
|
arch=("i686" "x86_64")
|
2017-05-09 21:18:47 +02:00
|
|
|
|
2019-05-12 20:32:16 +02:00
|
|
|
url="https://github.com/Nheko-Reborn/nheko"
|
2017-08-10 22:36:34 +02:00
|
|
|
license=("GPL3")
|
2017-05-09 21:18:47 +02:00
|
|
|
|
2020-05-15 03:23:42 +02:00
|
|
|
depends=("qt5-base" "lmdb" "qt5-graphicaleffects" "qt5-multimedia" "qt5-svg" "qt5-quickcontrols2" "qt5-declarative" "boost-libs" "libsodium" "cmark" "openssl" "hicolor-icon-theme")
|
|
|
|
makedepends=("git" "cmake" "gcc" "fontconfig" "qt5-tools" "nlohmann-json")
|
2017-05-09 21:18:47 +02:00
|
|
|
|
2018-04-12 22:44:36 +02:00
|
|
|
provides=("nheko")
|
|
|
|
conflicts=("nheko")
|
|
|
|
|
2020-03-03 03:41:28 +01:00
|
|
|
source=($pkgname::git://github.com/Nheko-Reborn/nheko.git#branch=master)
|
2017-12-04 20:43:10 +01:00
|
|
|
md5sums=("SKIP")
|
2017-08-10 22:36:34 +02:00
|
|
|
|
|
|
|
prepare() {
|
2017-08-10 22:44:36 +02:00
|
|
|
cd "$pkgname"
|
2017-08-10 22:36:34 +02:00
|
|
|
}
|
2017-05-09 21:18:47 +02:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$pkgname"
|
2020-05-15 03:23:42 +02:00
|
|
|
printf "0.7.1.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
2017-05-09 21:18:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname"
|
2018-07-16 21:15:37 +02:00
|
|
|
|
|
|
|
rm -f cmake/FindOlm.cmake
|
|
|
|
|
2019-05-13 05:36:56 +02:00
|
|
|
# build with more cores than the default
|
|
|
|
export CMAKE_BUILD_PARALLEL_LEVEL=$(cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l)
|
2020-05-15 03:23:42 +02:00
|
|
|
cmake -H. -Bbuild -DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF -DUSE_BUNDLED_OPENSSL=OFF -DUSE_BUNDLED_BOOST=OFF -DUSE_BUNDLED_CMARK=OFF -DUSE_BUNDLED_JSON=OFF \
|
2020-01-31 00:10:01 +01:00
|
|
|
-DCMAKE_INSTALL_PREFIX=.deps/usr
|
|
|
|
cmake --build build --config Release
|
2017-05-09 21:18:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# Creating needed directories
|
|
|
|
install -dm755 "$pkgdir/usr/bin"
|
|
|
|
install -dm755 "$pkgdir/usr/share/pixmaps/"
|
|
|
|
install -dm755 "$pkgdir/usr/share/applications/"
|
|
|
|
|
|
|
|
# Program
|
|
|
|
install -Dm755 "$pkgname/build/nheko" "$pkgdir/usr/bin/nheko"
|
|
|
|
|
|
|
|
# Desktop launcher
|
|
|
|
install -Dm644 "$srcdir/$pkgname/resources/nheko-256.png" "$pkgdir/usr/share/pixmaps/nheko.png"
|
|
|
|
install -Dm644 "$srcdir/$pkgname/resources/nheko.desktop" "$pkgdir/usr/share/applications/nheko.desktop"
|
|
|
|
|
|
|
|
# Icons
|
|
|
|
local icon_size icon_dir
|
|
|
|
for icon_size in 16 32 48 64 128 256 512; do
|
|
|
|
icon_dir="$pkgdir/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
|
|
|
|
install -d "$icon_dir"
|
|
|
|
install -m644 "$srcdir/$pkgname/resources/nheko-${icon_size}.png" "$icon_dir/nheko.png"
|
|
|
|
done
|
|
|
|
}
|