summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumner Evans2020-08-01 11:08:10 -0600
committerSumner Evans2020-08-01 11:11:09 -0600
commit65dab8dad3796b5855774427612c2b21a6ae21ea (patch)
tree8b84480725298f03bdfae6d0f5fe918d9e358188
downloadaur-65dab8dad3796b5855774427612c2b21a6ae21ea.tar.gz
Initial git install for Sublime Music
-rw-r--r--.SRCINFO32
-rw-r--r--.gitignore21
-rw-r--r--Makefile9
-rw-r--r--PKGBUILD79
4 files changed, 141 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c5ef60da9d2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = sublime-music-git
+ pkgdesc = A native Subsonic/Airsonic/*sonic client for Linux. Build using Python and GTK+.
+ pkgver = v0.11.4.r2.g44a6457
+ pkgrel = 1
+ url = https://sublimemusic.app
+ arch = any
+ license = GPL3
+ makedepends = python-setuptools
+ makedepends = python-sphinx
+ depends = python
+ depends = python-dataclasses-json
+ depends = python-dateutil
+ depends = python-deepdiff
+ depends = python-fuzzywuzzy
+ depends = python-gobject
+ depends = python-levenshtein
+ depends = python-mpv
+ depends = python-peewee
+ depends = python-requests
+ depends = python-semver
+ optdepends = libnm-glib: for changing the Subsonic server address depending on what SSID you are connected to
+ optdepends = libnotify: for system song notification support
+ optdepends = python-keyring: support for storing passwords in the system keyring
+ optdepends = python-pychromecast: support for casting to Chromecast devices
+ optdepends = python-bottle: support for casting downloaded files to Chromecasts on the same LAN
+ provides = sublime-music
+ conflicts = sublime-music
+ source = sublime-music-git::git+https://gitlab.com/sublime-music/sublime-music.git
+ md5sums = SKIP
+
+pkgname = sublime-music-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e5ce20d4c80
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,21 @@
+sublime-music-git
+
+# Created by https://www.toptal.com/developers/gitignore/api/archlinuxpackages
+# Edit at https://www.toptal.com/developers/gitignore?templates=archlinuxpackages
+
+### ArchLinuxPackages ###
+*.tar
+*.tar.*
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+pkg/
+src/
+
+# End of https://www.toptal.com/developers/gitignore/api/archlinuxpackages
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..007979addaa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+all: .SRCINFO
+
+.SRCINFO: PKGBUILD
+ makepkg --printsrcinfo > .SRCINFO
+
+test:
+ makepkg -f
+
+.PHONY: test
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4abd88e89b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,79 @@
+# Maintainer: Sumner Evans <sumner.evans98 at gmail dot com>
+
+pkgbase='sublime-music-git'
+pkgname=('sublime-music-git')
+_module='sublime-music'
+pkgver=v0.11.4.r2.g44a6457
+pkgrel=1
+pkgdesc='A native Subsonic/Airsonic/*sonic client for Linux. Build using Python and GTK+.'
+url='https://sublimemusic.app'
+provides=('sublime-music')
+conflicts=('sublime-music')
+depends=(
+ 'python'
+ 'python-dataclasses-json'
+ 'python-dateutil'
+ 'python-deepdiff'
+ 'python-fuzzywuzzy'
+ 'python-gobject'
+ 'python-levenshtein'
+ 'python-mpv'
+ 'python-peewee'
+ 'python-requests'
+ 'python-semver'
+)
+optdepends=(
+ 'libnm-glib: for changing the Subsonic server address depending on what SSID you are connected to'
+ 'libnotify: for system song notification support'
+ 'python-keyring: support for storing passwords in the system keyring'
+ 'python-pychromecast: support for casting to Chromecast devices'
+ 'python-bottle: support for casting downloaded files to Chromecasts on the same LAN'
+)
+makedepends=(
+ 'python-setuptools'
+ 'python-sphinx'
+)
+license=('GPL3')
+arch=('any')
+source=(
+ 'sublime-music-git::git+https://gitlab.com/sublime-music/sublime-music.git'
+)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+ desktop-file-install --dir=${pkgdir}/usr/share/applications sublime-music.desktop
+
+ pushd docs
+ make man
+ install -Dm644 ./_build/man/sublime-music.1 "${pkgdir}/usr/share/man/man1/sublime-music.1"
+ popd
+
+ pushd logo/rendered
+ install -Dm644 16.png ${pkgdir}/usr/share/icons/hicolor/16x16/apps/sublime-music.png
+ install -Dm644 22.png ${pkgdir}/usr/share/icons/hicolor/22x22/apps/sublime-music.png
+ install -Dm644 32.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/sublime-music.png
+ install -Dm644 36.png ${pkgdir}/usr/share/icons/hicolor/36x36/apps/sublime-music.png
+ install -Dm644 48.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/sublime-music.png
+ install -Dm644 64.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/sublime-music.png
+ install -Dm644 72.png ${pkgdir}/usr/share/icons/hicolor/72x72/apps/sublime-music.png
+ install -Dm644 96.png ${pkgdir}/usr/share/icons/hicolor/96x96/apps/sublime-music.png
+ install -Dm644 128.png ${pkgdir}/usr/share/icons/hicolor/128x128/apps/sublime-music.png
+ install -Dm644 192.png ${pkgdir}/usr/share/icons/hicolor/192x192/apps/sublime-music.png
+ install -Dm644 512.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps/sublime-music.png
+ install -Dm644 1024.png ${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/sublime-music.png
+ popd
+}