2021-02-18 14:07:27 +01:00
|
|
|
# Maintainer: Daniel Peukert <daniel@peukert.cc>
|
|
|
|
_projectname='spot'
|
|
|
|
pkgname="$_projectname-client"
|
2021-04-13 10:24:16 +02:00
|
|
|
pkgver='0.1.13'
|
2021-03-17 23:03:00 +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')
|
|
|
|
depends=('alsa-lib' 'glib2' 'gtk3' 'libhandy' 'libpulse' 'openssl')
|
2021-03-14 09:34:04 +01:00
|
|
|
optdepends=('org.freedesktop.secrets')
|
2021-03-14 18:09:38 +01:00
|
|
|
makedepends=('cargo' 'meson>=0.50.0')
|
|
|
|
checkdepends=('appstream-glib')
|
2021-03-17 23:03:00 +01:00
|
|
|
source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz")
|
2021-04-13 10:24:16 +02:00
|
|
|
sha256sums=('9c4397fd6b4c000fbd35705ce09e15947131350fd72ccaa6ee2b5510f07aba29')
|
2021-02-18 14:07:27 +01:00
|
|
|
|
|
|
|
_sourcedirectory="$_projectname-$pkgver"
|
|
|
|
_builddirectory='build'
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/"
|
2021-03-14 17:40:24 +01:00
|
|
|
meson setup --prefix '/usr' --libexecdir 'lib' --sbindir 'bin' --buildtype 'release' --wrap-mode 'nodownload' \
|
|
|
|
-Db_lto='true' -Db_pie='true' -Doffline='false' -Dfeatures='warn-cache' "$_sourcedirectory" "$_builddirectory"
|
2021-02-18 14:07:27 +01:00
|
|
|
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"
|
|
|
|
}
|