From 70de1fd81d048f1c78d184cd3bacc2e34c78762c Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Tue, 17 Nov 2020 13:53:24 +0200 Subject: [PATCH] app-misc/spicetify-cli: new pkg, 1.1.0 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Alfred Wingate --- app-misc/spicetify-cli/Manifest | 20 ++++++ app-misc/spicetify-cli/files/spicetify | 2 + app-misc/spicetify-cli/metadata.xml | 12 ++++ .../spicetify-cli/spicetify-cli-1.1.0.ebuild | 67 +++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 app-misc/spicetify-cli/Manifest create mode 100644 app-misc/spicetify-cli/files/spicetify create mode 100644 app-misc/spicetify-cli/metadata.xml create mode 100644 app-misc/spicetify-cli/spicetify-cli-1.1.0.ebuild diff --git a/app-misc/spicetify-cli/Manifest b/app-misc/spicetify-cli/Manifest new file mode 100644 index 0000000..5786a79 --- /dev/null +++ b/app-misc/spicetify-cli/Manifest @@ -0,0 +1,20 @@ +DIST github.com%2Fgo-ini%2Fini%2F@v%2Fv1.55.0.mod 29 BLAKE2B ec6988d536e1cfabecc7e1ee6070c6429c88de9bd970b3ecb35bf8e42ac3d2dfa08beefbd3741ef7a039020e6d41332039c6bc0e13d5e79bca84cf669e4f552f SHA512 67077f6e3f3c2571d6df326aa1d6351c3f7950337a23c548ff69e73df265db516eee559ee4afff17868068f2754c7ef272e46bc3dd5ac324ed002b749116794f +DIST github.com%2Fgo-ini%2Fini%2F@v%2Fv1.55.0.zip 63623 BLAKE2B 30fae1c651777a636d22383323433b28741d82756bca394b3fff40a4ae87f9ff62812ccb70762c6d57126bdeaf3ffc2b90f537411c8a65788cfaf462e06ac6ca SHA512 3d301c0b9861bdb4c226893e84102abdbaadf487e0c332527ee6b0d4274729cdae63b324c0452777aa07dff8a397620caacfc800e0d37e8c53d9580166eb2744 +DIST github.com%2Fmattn%2Fgo-colorable%2F@v%2Fv0.1.6.mod 160 BLAKE2B 10c23e5a0edbdd398d6913ee8e4665e15ab0c30c6aad4d8e113533d421058858a4c23898f8f360b72cc39922bf9b4e7c6c656faab76ec4616e05285932bfef03 SHA512 60840c731813699f19e9a23f3cc0e890c0b0e8228510b0021aa2696f35f3aefa1fc06eb396c5035214ac185816d5757896da1bfaf59e2dd24ca750f5b792e6c5 +DIST github.com%2Fmattn%2Fgo-colorable%2F@v%2Fv0.1.6.zip 13586 BLAKE2B 8f8bc0b542920d0effcd6939a66e34609401f564af0c1f6330bff2925abc664add3c36534bdf8602ac176e74ed85ec8c8597f748a7ec82db9e9f86207c563fee SHA512 bd6adb6aaf44c6c59bda2407a05e192d3336154cec35d0a6b6244cc5b93dc5e53509abded7c5999af166821749dd2e55333a8813ce64c310ba5db2df597bc171 +DIST github.com%2Fmattn%2Fgo-isatty%2F@v%2Fv0.0.12.mod 104 BLAKE2B a8f54d5566d54ac27763dd535705d64dddd862f32d23f234b1ffbf759cbf4aa16886c90a96198ae2f4c0d0bc892932f1b8244e8ff0f8150bb87123947d734016 SHA512 7bd9f6a38aa9a16c3569142164389d1c4046170f66b5e9044f7aaa3192e9d2e2ccec486e3bc7fbac868c9693b6d333068c1a34ccd9e79dec1746a86348951503 +DIST github.com%2Fmattn%2Fgo-isatty%2F@v%2Fv0.0.12.zip 8902 BLAKE2B 7257687403b9f8f066147fdd4ee1bec7e4b02cfd3fddda8349a89d9b9ea5b93d9bef61280ed48d68adac4dfed7e382ee96886aa0d65d85406fb93dc6fe0c53b1 SHA512 79ba14a04838c509500e6098553e8aadcd7105445387160a8aa1a6d7b0e70f0e807c99036c31faf51920544da2156195174c8530e317a72728719cb0a9a66098 +DIST golang.org%2Fx%2Fcrypto%2F@v%2Fv0.0.0-20190308221718-c2843e01d9a2.mod 88 BLAKE2B aec7d0eea1278eb3d1568d5bfb4041267501ad14457ebfcbdbc5fe21473170b8616ca4028f52af2edbfd85922cbe04540b4b0df7f69f63197698143cc5557a7a SHA512 2df49895053b36fed7ea905aa73f86568fbafd79ff0a7976679d8c77cf15025129435d9dbfd89367b611b1aadbea4f4bd1835eb4efa9ea702466e443638d379e +DIST golang.org%2Fx%2Fnet%2F@v%2Fv0.0.0-20200506145744-7e3656a0809f.mod 181 BLAKE2B b45bdd8d5412dfa50e483e0e3431a133435aa68b1225e66fce0f2ef80f2e9d40a9f56a47d5f2faede1624fe05c80fe97c7cd56dd9a6b56ad91315cfbcf9638db SHA512 0c6baecc550358cbc908d994f81f786e62f619b197d4ba0ca5af19eb2ddf243d7f36c6174634b65e205fa5ed3b9c3393d1677c0a57c2b99ddcb252b935a2dc70 +DIST golang.org%2Fx%2Fnet%2F@v%2Fv0.0.0-20200506145744-7e3656a0809f.zip 1500722 BLAKE2B 969e10c1df8afd475b39fa2d399c592266794b591f0ee8870b82f5f7942b42ec342dfc552c2d6fca93f9bce062f20c82e962db4211df64dc41015860517c276e SHA512 cde3ca000a27644d022eee1bc0600e28e8cafa7e5df4f7e4cb3a865b163eae0c5fcc6e9ca2786b8ffca7867cf69e046dc6712a0040c30e8ee1b03bb7869d09b1 +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20190215142949-d0b11bdaac8a.mod 24 BLAKE2B 64a70c4594f5d3c37d962c1ed07630fba8abeaf534242f8f1509af271684499252af9a2320d5bac8e44064dba344b807535e4e9dd085fc0fb47bd9304120601a SHA512 ffe50fccf7f1d200f2ebc805b190e3f10c5a3184458a38f4590e520d7ce115e1520fbabe56651bbdc2e08da4a8db5ac86d0e88728efde3ab26c64ab4e0cd604c +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20190215142949-d0b11bdaac8a.zip 1584596 BLAKE2B 2d891f4ee749bbf528b0a44acc8cc71a56432961fc47864ec9dd47543a8a1a97d55399dbb95a0654b0588ca2dc95289ae31746ada83afd9a667662c371b6747d SHA512 8431fd78425186e55e07be9cfdb81d294b517d1695f99da3612477b8275d9a64038b60097658a02f399ed99d2f399197e572f3c307f70fa075b4995943caddb8 +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200116001909-b77594299b42.mod 33 BLAKE2B 8be160de26713fd50f15adfb6fd7fff2643ee587aa17de9385b1e315869d0ecf102fc567294666bf232aa677d1ab04ba8341157f3d9b66a0f53543a7a47cf148 SHA512 0c7b940d567c7685dcb55c76c69aedeaab2170f4f3bde458994c879bf344169f34fb3f3ca899b0f138a8b0b8be5031217b57a6edf5980e6066ff5cb92d1ff9ab +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200116001909-b77594299b42.zip 1913147 BLAKE2B b29c9c32f5141a45284bb17e0236b0650a8bc60da0326e47e153563ba2259b5e30d043db1d1aa5bf98cb80b28f5481483a3b2c33776e8c40ccc6e2955b440dbd SHA512 26e655cb67ad0630e05c176a342135ec67c08eaa396000095f568f0c112810a262c204d7973e16a16539c69b7f543062ba29b6b1c9bc934f7b0783b79dd33b7a +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200223170610-d5e6a3e2c0ae.mod 33 BLAKE2B 8be160de26713fd50f15adfb6fd7fff2643ee587aa17de9385b1e315869d0ecf102fc567294666bf232aa677d1ab04ba8341157f3d9b66a0f53543a7a47cf148 SHA512 0c7b940d567c7685dcb55c76c69aedeaab2170f4f3bde458994c879bf344169f34fb3f3ca899b0f138a8b0b8be5031217b57a6edf5980e6066ff5cb92d1ff9ab +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200223170610-d5e6a3e2c0ae.zip 1918660 BLAKE2B 015e9ad74f145cdd7cdeb55d7b2d8949d6e7baedaae36089fa53cb257b4fb49830aeb299ea3a1f782b2f033443a18d009cafcf0211d1709d4d37b4b97d5f3d08 SHA512 24a653028d079c52ba8128d9f43452d2ecabd374c8eba36d44704c3f70cac50761597c7b7bb6524ba50fcde696fbcded57c29f04f35e42c62e23a9790852bb56 +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200323222414-85ca7c5b95cd.mod 33 BLAKE2B 8be160de26713fd50f15adfb6fd7fff2643ee587aa17de9385b1e315869d0ecf102fc567294666bf232aa677d1ab04ba8341157f3d9b66a0f53543a7a47cf148 SHA512 0c7b940d567c7685dcb55c76c69aedeaab2170f4f3bde458994c879bf344169f34fb3f3ca899b0f138a8b0b8be5031217b57a6edf5980e6066ff5cb92d1ff9ab +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200323222414-85ca7c5b95cd.zip 1470272 BLAKE2B 9a8bbb988370bedc24428e6c78f42a9ba44dbb852ce91c3d7fc54e83678b72b9177e67c955c49dc8ef7a1e2e214475a2e55c53254469e3426ec271e90ec9e2d5 SHA512 e46ef76fe4a1628def4c6a291003b64cf11185c0214427af9c49b9ff3af99f258488d49e887206a9c8652784228d822665c5841ce87d6ff993e95ea3d0494129 +DIST golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.mod 25 BLAKE2B 31009af0fdcd0f8730c9985287e6e364ec4e5183e57e92560dbc80a2010eced51b8a90f01a82b49384268c8a0adbf69d179c205d3f68e0eb459169d2ea9528f0 SHA512 ca081ef7cccd7bbedc6843fbe0c452352661a07e1298cd02ff338ed79d807c6401d613a3cf20011189d2f98a794ffa410547b3e352eb58a6f0a84822285d391d +DIST golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.zip 6349244 BLAKE2B 0aa464ac7b7d17fa7ec0627b64cd2301ed4f2819f837807db7a55725950dacb40be899b5148b07ea31b51530818edcccc6444a9800755e1d369ba8f1bce949b0 SHA512 982d78f580a7eac99a0c51e6f1fd2b2c3b91f56cd5e2b96fe960510049f7daf5915264f73f55f05675eee232a52998f9667fa84a9ccba15ed7819e4c93f583a7 +DIST spicetify-cli-1.1.0.tar.gz 628682 BLAKE2B 64a9e9611c0d73b882137d83ef130288f93795847e96dc65a155cc2f34a453155a39751cd828dbf14ce9f165928e8cdec05b94274bb7cc4abff218949cf00ad5 SHA512 ab385a5974ab5b92108fbf9014aa153023ab6879910cb8ba172d4ec330e2af2256ffc1872a8eecdea04b37e3ec47fcabcd93df9a38403a0538e29728f5daa678 diff --git a/app-misc/spicetify-cli/files/spicetify b/app-misc/spicetify-cli/files/spicetify new file mode 100644 index 0000000..0dc7ed4 --- /dev/null +++ b/app-misc/spicetify-cli/files/spicetify @@ -0,0 +1,2 @@ +#!/bin/sh +exec /opt/spicetify-cli/spicetify-cli "$@" diff --git a/app-misc/spicetify-cli/metadata.xml b/app-misc/spicetify-cli/metadata.xml new file mode 100644 index 0000000..904c9bb --- /dev/null +++ b/app-misc/spicetify-cli/metadata.xml @@ -0,0 +1,12 @@ + + + + + parona@protonmail.com + Alfred Wingate + + + khanhas/spicetify-cli + https://github.com/khanhas/spicetify-cli/wiki + + diff --git a/app-misc/spicetify-cli/spicetify-cli-1.1.0.ebuild b/app-misc/spicetify-cli/spicetify-cli-1.1.0.ebuild new file mode 100644 index 0000000..3d25570 --- /dev/null +++ b/app-misc/spicetify-cli/spicetify-cli-1.1.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module + +EGO_SUM=( + "github.com/go-ini/ini v1.55.0" + "github.com/go-ini/ini v1.55.0/go.mod" + "github.com/mattn/go-colorable v0.1.6" + "github.com/mattn/go-colorable v0.1.6/go.mod" + "github.com/mattn/go-isatty v0.0.12" + "github.com/mattn/go-isatty v0.0.12/go.mod" + "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod" + "golang.org/x/net v0.0.0-20200506145744-7e3656a0809f" + "golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod" + "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a" + "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod" + "golang.org/x/sys v0.0.0-20200116001909-b77594299b42" + "golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod" + "golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae" + "golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod" + "golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd" + "golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod" + "golang.org/x/text v0.3.0" + "golang.org/x/text v0.3.0/go.mod" +) + +go-module_set_globals + +DESCRIPTION="Commandline tool to customize Spotify client." +HOMEPAGE="https://github.com/khanhas/spicetify-cli" +SRC_URI=" + https://github.com/khanhas/spicetify-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${EGO_SUM_SRC_URI} +" + +LICENSE="Apache-2.0 BSD GPL-3 MIT" +SLOT="0" +KEYWORDS="~amd64" + +INSTALLDIR="/opt/${PN}" + +src_unpack() { + unpack "${DISTDIR}/golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200323222414-85ca7c5b95cd.zip" + go-module_src_unpack + default +} + +src_prepare() { + # Have to do this as eclass has issues with this for reasons unknown to me + mkdir -p "${HOME}/go/pkg/mod/golang.org/x/" + cp -r "${WORKDIR}/golang.org/x/sys\@v0.0.0-20200323222414-85ca7c5b95cd/" "${HOME}/go/pkg/mod/golang.org/x/sys\@v0.0.0-20200323222414-85ca7c5b95cd" + default +} + +src_compile() { + go build +} + +src_install() { + insinto "${INSTALLDIR}" + doins -r {CustomApps,Extensions,Themes,jsHelper,spicetify-cli} + dobin "${FILESDIR}/spicetify" + fperms +x "${INSTALLDIR}/spicetify-cli" +}