Add spot-client and spot-client-git
This commit is contained in:
commit
466108ee36
4 changed files with 89 additions and 0 deletions
27
.SRCINFO
Normal file
27
.SRCINFO
Normal file
|
@ -0,0 +1,27 @@
|
|||
pkgbase = spot-client-git
|
||||
pkgdesc = Gtk/Rust native Spotify client
|
||||
pkgver = 0.1.7.r7.g58a1db7
|
||||
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 = git
|
||||
makedepends = meson
|
||||
depends = alsa-lib
|
||||
depends = glib2
|
||||
depends = gtk3
|
||||
depends = libhandy
|
||||
depends = libpulse
|
||||
depends = openssl
|
||||
provides = spot-client
|
||||
conflicts = spot-client
|
||||
source = spot-client-git::git+https://github.com/xou816/spot
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = spot-client-git
|
8
.editorconfig
Normal file
8
.editorconfig
Normal file
|
@ -0,0 +1,8 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = tab
|
||||
tab_width = 4
|
14
.gitignore
vendored
Normal file
14
.gitignore
vendored
Normal file
|
@ -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
|
||||
|
||||
*/
|
40
PKGBUILD
Normal file
40
PKGBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Maintainer: Daniel Peukert <daniel@peukert.cc>
|
||||
_projectname='spot'
|
||||
pkgname="$_projectname-client-git"
|
||||
pkgver='0.1.7.r7.g58a1db7'
|
||||
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' 'git' 'meson')
|
||||
provides=("$_projectname-client")
|
||||
conflicts=("$_projectname-client")
|
||||
source=("$pkgname::git+$url")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
_sourcedirectory="$pkgname"
|
||||
_builddirectory='build'
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_sourcedirectory/"
|
||||
git describe --long --tags | sed -e 's/^v//' -e 's/-\([^-]*-g[^-]*\)$/-r\1/' -e 's/-/./g'
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
Loading…
Reference in a new issue