2022-03-28 21:58:37 +02:00
|
|
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
|
|
|
# Contributor: Daniel Peukert <daniel@peukert.cc>
|
2021-09-10 02:10:25 +02:00
|
|
|
# Contributor: NicoHood <archlinux {cat} nicohood {dog} de>
|
2022-12-08 21:56:17 +01:00
|
|
|
|
2021-02-18 14:07:27 +01:00
|
|
|
_projectname='spot'
|
|
|
|
pkgname="$_projectname-client"
|
2024-05-07 18:58:27 +02:00
|
|
|
pkgver='0.4.1'
|
2022-01-16 16:36:22 +01:00
|
|
|
pkgrel='1'
|
2021-02-18 14:07:27 +01:00
|
|
|
pkgdesc='Gtk/Rust native Spotify client'
|
|
|
|
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
|
|
|
url="https://github.com/xou816/$_projectname"
|
|
|
|
license=('MIT')
|
2021-09-10 02:10:25 +02:00
|
|
|
depends=('alsa-lib' 'cairo' 'glib2' 'glibc' 'graphene' 'gtk4' 'libadwaita' 'libpulse' 'openssl' 'pango')
|
2021-03-14 09:34:04 +01:00
|
|
|
optdepends=('org.freedesktop.secrets')
|
2024-05-07 18:58:27 +02:00
|
|
|
makedepends=('cargo' 'meson>=0.59.0' 'blueprint-compiler>=0.8.1')
|
2021-03-14 18:09:38 +01:00
|
|
|
checkdepends=('appstream-glib')
|
2024-05-07 18:58:27 +02:00
|
|
|
options=('!lto') # Build breaks with LTO enabled
|
|
|
|
source=("https://github.com/xou816/$_projectname/archive/$pkgver/$_projectname-$pkgver.tar.gz"
|
|
|
|
'disable-clippy.patch')
|
|
|
|
sha512sums=('05ee8ce9277230a0f6c25411b41788a508551a61cd436bdd6bb0d8245030b0523232c0e30c7d2f98977382e687ec0f502cb6eb9b95a7dbaae97042ec596f407e'
|
|
|
|
'4e38fff2a5867c46749959ceb0fb16372f12c8f8038b6a33d43e126e741f43e524e1499bb9b514e56b036097aaa0ac5dd149823c2c9eba277ab0ea4f58d5fb55')
|
|
|
|
validpgpkeys=() # Waiting for https://github.com/xou816/spot/issues/283
|
2021-02-18 14:07:27 +01:00
|
|
|
|
|
|
|
_sourcedirectory="$_projectname-$pkgver"
|
|
|
|
_builddirectory='build'
|
|
|
|
|
2022-03-08 12:08:50 +01:00
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/$_sourcedirectory/"
|
2024-05-07 18:58:27 +02:00
|
|
|
# Disable failing clippy tests
|
2023-02-24 23:24:08 +01:00
|
|
|
patch -Np1 < '../disable-clippy.patch'
|
2022-03-08 12:08:50 +01:00
|
|
|
}
|
|
|
|
|
2021-02-18 14:07:27 +01:00
|
|
|
build() {
|
|
|
|
cd "$srcdir/"
|
2021-09-10 02:10:25 +02:00
|
|
|
# We're not using arch-meson, because upstream recommends using --buildtype 'release'
|
|
|
|
# The offline build flag is turned off, as we're not predownloading rust dependencies
|
2021-03-14 17:40:24 +01:00
|
|
|
meson setup --prefix '/usr' --libexecdir 'lib' --sbindir 'bin' --buildtype 'release' --wrap-mode 'nodownload' \
|
2021-09-10 02:10:25 +02:00
|
|
|
-Db_lto='true' -Db_pie='true' -Doffline='false' "$_sourcedirectory" "$_builddirectory"
|
2021-02-18 14:07:27 +01:00
|
|
|
meson compile -C "$_builddirectory"
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$srcdir/"
|
2021-05-31 15:27:33 +02:00
|
|
|
meson test -C "$_builddirectory" --timeout-multiplier -1
|
2021-02-18 14:07:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/"
|
2021-09-10 02:10:25 +02:00
|
|
|
meson install -C "$_builddirectory" --destdir "$pkgdir"
|
2021-02-18 14:07:27 +01:00
|
|
|
install -Dm644 "$_sourcedirectory/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|