# Maintainer: Fabio 'Lolix' Loli -> https://github.com/FabioLolix # Contributor: marcin mikołajczak pkgname=tokodon-git pkgver=22.11.r37.gf61f5a7 pkgrel=2 pkgdesc="Native Mastodon client" arch=(x86_64) url="https://invent.kde.org/network/tokodon" license=(LGPL) depends=(kirigami2 kirigami-addons qtkeychain-qt5 kdbusaddons ki18n qt5-websockets knotifications kitemmodels qqc2-desktop-style) makedepends=(extra-cmake-modules qt5-tools git qt5-svg qt5-multimedia qt5-quickcontrols2 kcoreaddons knotifyconfig) conflicts=(tokodon) provides=(tokodon) source=('git+https://invent.kde.org/network/tokodon.git') sha256sums=('SKIP') pkgver() { cd tokodon git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { [[ -d build ]] || mkdir build } build() { cd build cmake ../tokodon \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON make } package() { cd build make DESTDIR="$pkgdir" install }