makedeb
Cute and easy to use matrix messenger. Secure and decentralized.
Viewing /PKGBUILD
.
Click here to go back to the Git tree for fluffychat-bin.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: The one with the braid (AUR) <the-one@with-the-braid.cf>
_pkgname=fluffychat
pkgname="${_pkgname}-bin"
pkgver=1.23.0
pkgrel=0
pkgdesc="Cute and easy to use matrix messenger. Secure and decentralized."
arch=('amd64')
url="https://fluffychat.im/"
license=('AGPL3')
depends=('libgtk-3-0' 'libjsoncpp25' 'libsecret-1-0' 'libolm3' 'xdg-user-dirs' 'zenity')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("fluffychat-${pkgver}.tar.gz::https://github.com/krille-chan/fluffychat/releases/download/v${pkgver}/fluffychat-linux-x64.tar.gz")
noextract=("${_pkgname}-${pkgver}.tar.gz")
b2sums=('c3781e3fafec6a07d5fce4e7fc8f3da3f0d08c5b2305c5606eb5537fba740637db650866f7c4c5d8dae6e4d9bfb36b2dfd95358a6cd3a375ef11eca7346f25c6')
prepare() {
cd "${srcdir}"
# extract archive
mkdir -p "${_pkgname}-${pkgver}"
bsdtar -xf "${_pkgname}-${pkgver}.tar.gz" -C "${_pkgname}-${pkgver}"
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
# creating directories
install -dm755 ${pkgdir}/usr/{bin,lib,libexec/${_pkgname},share/{pixmaps,applications,doc/${_pkgname}}}
# install
install -m755 "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}" "${pkgdir}/usr/libexec/${_pkgname}/"
cp -r "${srcdir}/${_pkgname}-${pkgver}/data" "${pkgdir}/usr/share/${_pkgname}"
cp -r "${srcdir}/${_pkgname}-${pkgver}/lib" "${pkgdir}/usr/lib/${_pkgname}"
# linking
ln -s /usr/libexec/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
ln -s /usr/share/${_pkgname} ${pkgdir}/usr/libexec/${_pkgname}/data
ln -s /usr/lib/${_pkgname} ${pkgdir}/usr/libexec/${_pkgname}/lib
ln -s /usr/share/${_pkgname}/flutter_assets/assets/favicon.png ${pkgdir}/usr/share/pixmaps/${_pkgname}.png
ln -s /usr/share/${_pkgname}/flutter_assets/NOTICES.Z ${pkgdir}/usr/share/doc/${_pkgname}/NOTICES.Z
# desktop entry
cat > ${pkgdir}/usr/share/applications/${_pkgname}.desktop << EOF
[Desktop Entry]
Type=Application
Version=${pkgver}
Name=FluffyChat
Comment=Cute and easy to use (matrix) messenger. Secure and decentralized.
Exec=${_pkgname}
Icon=${_pkgname}
Terminal=false
StartupNotify=false
Categories=Network;InstantMessaging;Chat;
EOF
}
# vim: set sw=2 ts=2 et: