diff options
author | Daniel Peukert | 2021-02-18 14:07:27 +0100 |
---|---|---|
committer | Daniel Peukert | 2021-02-18 14:07:27 +0100 |
commit | 2d12250a6e81183c2cd57b2996f114427668b1b9 (patch) | |
tree | cafa853fb29bc9b80c16d66b65e07e601bb8d62f /PKGBUILD | |
download | aur-2d12250a6e81183c2cd57b2996f114427668b1b9.tar.gz |
Add spot-client and spot-client-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..be6b9d114e87 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Daniel Peukert <daniel@peukert.cc> +_projectname='spot' +pkgname="$_projectname-client" +pkgver='0.1.7' +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') +source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=('755c11a2e79e575442db4b85a9b44c9f821b048515ecc4d14a6fe335df3ca4ed') + +_sourcedirectory="$_projectname-$pkgver" +_builddirectory='build' + +build() { + cd "$srcdir/" + arch-meson "$_sourcedirectory" "$_builddirectory" -Doffline=false + 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" +} |