# Maintainer: garionion # thanks to celogeek, sseneca, dr460nf1r3, dr460nf1r3 and AverytheFurry for pointing out multiple things pkgname=fluffychat pkgver=1.0.1 _flutterversion=2.5.3-stable pkgrel=1 pkgdesc="Chat with your friends" arch=('x86_64' 'aarch64') url="https://fluffychat.im/" license=('AGPL3') depends=('libolm' 'xdg-user-dirs' 'gtk3' 'jsoncpp' 'libsecret') makedepends=('clang' 'ninja' 'cmake' 'git' 'unzip') provides=("$pkgname") conflicts=("$pkgname") source=( "flutter-${_flutterversion}.tar.xz::https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${_flutterversion}.tar.xz" "fluffychat-v${pkgver}.tar.gz::https://gitlab.com/famedly/fluffychat/-/archive/v${pkgver}/fluffychat-v${pkgver}.tar.gz") sha256sums=('b32d04a9fa5709326b4e724e0de64ff1b2b70268f89dd3c748e6360ac937fe01' '0c9ada0aae4779b2329c0641d6b17b20b31fb29856548d7f4e402160baab5da9') prepare() { export PATH="${srcdir}/flutter/bin:$PATH" flutter config --no-analytics flutter config --enable-linux-desktop } build() { export PATH="${srcdir}/flutter/bin:$PATH" cd ${pkgname}-v$pkgver flutter clean #flutter pub get flutter build linux --release --verbose } package() { # install install -dm755 ${pkgdir}/opt mv ${pkgname}-v$pkgver/build/linux/x64/release/bundle ${pkgdir}/opt/${pkgname} # link install -dm755 ${pkgdir}/usr/bin ln -s /opt/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname} # icon install -Dm 644 ${pkgdir}/opt/${pkgname}/data/flutter_assets/assets/favicon.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png # desktop entry install -dm 755 "${pkgdir}/usr/share/applications" cat > ${pkgdir}/usr/share/applications/${pkgname}.desktop << EOF [Desktop Entry] Type=Application Version=${pkgver} Name=FluffyChat Comment=Matrix Client. Chat with your friends Exec=${pkgname} Icon=${pkgname} Terminal=false EOF } # vim: set sw=2 ts=2 et: