summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkhanhas2019-01-11 11:14:26 +0700
committerkhanhas2019-01-11 11:14:26 +0700
commitbeb204d54e1b579ffb4cb460e48c4246e7377626 (patch)
tree5f1fd2db6ef9695d8684db7ce6f40247ebdf7f51
downloadaur-beb204d54e1b579ffb4cb460e48c4246e7377626.tar.gz
init:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD33
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8346c5bf99a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = spicetify-cli
+ pkgdesc = Command-line tool to customize Spotify client
+ pkgver = 0.4.1
+ pkgrel = 1
+ url = https://github.com/khanhas/spicetify-cli
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = go-pie
+ source = https://github.com/khanhas/spicetify-cli/archive/v0.4.1.tar.gz
+ sha256sums = 29b065c3b5b1acab71977371fcb488b2f9af4d854ce1e57f9522398799894a7d
+
+pkgname = spicetify-cli
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c19846d8703
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+## Maintainer: khanhas <xuankhanh963@gmail.com>
+pkgname=spicetify-cli
+pkgver=0.4.1
+pkgrel=1
+pkgdesc='Command-line tool to customize Spotify client'
+arch=('x86_64' 'i686')
+url='https://github.com/khanhas/spicetify-cli'
+license=('GPL')
+makedepends=('go-pie')
+source=("$url/archive/v$pkgver.tar.gz")
+sha256sums=('29b065c3b5b1acab71977371fcb488b2f9af4d854ce1e57f9522398799894a7d')
+
+build() {
+ cd "$pkgname-$pkgver"
+ go build -o spicetify
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ ./spicetify -v
+}
+
+package() {
+ cd $pkgname-$pkgver
+ install -Dm755 ./spicetify "$pkgdir"/usr/share/$pkgname/spicetify
+ cp -r ./Themes ./Extensions ./jsHelper ./globals.d.ts "$pkgdir"/usr/share/$pkgname
+
+ rm -f ./shortcut
+ echo "#!/bin/sh
+/usr/share/$pkgname/spicetify \"\$@\"" >> ./shortcut
+
+ install -Dm755 ./shortcut "$pkgdir"/usr/bin/spicetify
+}