From 2d12250a6e81183c2cd57b2996f114427668b1b9 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Thu, 18 Feb 2021 14:07:27 +0100 Subject: [PATCH] Add spot-client and spot-client-git --- .SRCINFO | 24 ++++++++++++++++++++++++ .editorconfig | 8 ++++++++ .gitignore | 14 ++++++++++++++ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 .SRCINFO create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..1a32659 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = spot-client + pkgdesc = Gtk/Rust native Spotify client + pkgver = 0.1.7 + pkgrel = 1 + url = https://github.com/xou816/spot + arch = x86_64 + arch = i686 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 + license = MIT + makedepends = cargo + makedepends = meson + depends = alsa-lib + depends = glib2 + depends = gtk3 + depends = libhandy + depends = libpulse + depends = openssl + source = spot-client-0.1.7-1.tar.gz::https://github.com/xou816/spot/archive/0.1.7.tar.gz + sha256sums = 755c11a2e79e575442db4b85a9b44c9f821b048515ecc4d14a6fe335df3ca4ed + +pkgname = spot-client diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a467ee9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = tab +tab_width = 4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..82b3c18 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore +*.tar +*.tar.* +*.rpm +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +*/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..be6b9d1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Daniel Peukert +_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" +}