description="An unofficial WhatsApp desktop application for linux"
url="https://github.com/eneshecan/whatsapp-for-linux"

license="GPL3"

packager="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(cmake openssl libcanberra gtkmm webkitgtk libayatana-appindicator)

run=(hicolor-icon-theme desktop-file-utils
     gtk-update-icon-cache shared-mime-info
     gstreamer-plugins-libav gstreamer-plugins-base
     gstreamer-plugins-good gstreamer-plugins-bad)

name=whatsapp-for-linux
version=1.6.5

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/eneshecan/$name/archive/refs/tags/v${version}.tar.gz)

build() {
cd $name-$version

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
make
make DESTDIR=$PKG install

install -Dm644 ../LICENSE $PKG/usr/share/licenses/$name/LICENSE
}
