# Maintainer: Daniel Peukert _projectname='spot' pkgname="$_projectname-client" pkgver='0.1.10' pkgrel='1' pkgdesc='Gtk/Rust native Spotify client' arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://github.com/xou816/$_projectname" license=('MIT') depends=('alsa-lib' 'glib2' 'gtk3' 'libhandy' 'libpulse' 'openssl') makedepends=('cargo' 'meson>=0.50.0') optdepends=('org.freedesktop.secrets') source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz") sha256sums=('9399ba0673ad32a9e6220eaa220c08fba8d6464adab5018130e5cad8818b0979') _sourcedirectory="$_projectname-$pkgver" _builddirectory='build' build() { cd "$srcdir/" arch-meson "$_sourcedirectory" "$_builddirectory" -Doffline=false -Dbuildtype=release meson compile -C "$_builddirectory" } check() { cd "$srcdir/" meson test -C "$_builddirectory" } package() { cd "$srcdir/" DESTDIR="$pkgdir" meson install -C "$_builddirectory" install -Dm644 "$_sourcedirectory/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }