summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Majewski2020-09-09 13:20:56 +0200
committerKevin Majewski2020-09-09 13:20:56 +0200
commit8212c4c3c760b00b1eeba68c5761f6f0711f3859 (patch)
tree75807bf074c2a6c8cae9c9ddfcaf3c816e34015b
downloadaur-ymuse-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD45
-rw-r--r--ymuse.desktop15
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c4df166306e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = ymuse-git
+ pkgdesc = Easy, functional, and snappy client for Music Player Daemon
+ pkgver = v0.15.r1.g67b00df
+ pkgrel = 1
+ url = https://yktoo.com/en/software/ymuse/
+ arch = x86_64
+ license = Apache
+ makedepends = go
+ depends = gtk3
+ optdepends = mpd
+ source = git+https://github.com/yktoo/ymuse.git
+ source = ymuse.desktop
+ sha512sums = SKIP
+ sha512sums = dbf124b2be06036faecb0a5af76b6b44bfdfcd7461c69807a6fcfb3008131072412387e888d9c6777ef9549aa2ae1fafb296d904a9b525dff4b09cc36400a6ff
+
+pkgname = ymuse-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..77ed19b1f9d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+pkgname=ymuse-git
+_pkgname=ymuse
+pkgver=v0.15.r1.g67b00df
+pkgrel=1
+pkgdesc="Easy, functional, and snappy client for Music Player Daemon"
+arch=(x86_64)
+url="https://yktoo.com/en/software/ymuse/"
+license=("Apache")
+depends=("gtk3")
+optdepends=("mpd")
+makedepends=("go")
+source=(
+ "git+https://github.com/yktoo/ymuse.git"
+ "ymuse.desktop"
+)
+sha512sums=(
+ "SKIP"
+ "dbf124b2be06036faecb0a5af76b6b44bfdfcd7461c69807a6fcfb3008131072412387e888d9c6777ef9549aa2ae1fafb296d904a9b525dff4b09cc36400a6ff"
+)
+
+pkgver() {
+ cd $_pkgname
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd $_pkgname
+ go generate
+ go build -ldflags "-s -w"
+}
+
+package() {
+ cd $_pkgname
+ install -Dm755 ymuse "${pkgdir}/usr/bin/ymuse"
+
+ for file in $(find resources/icons -type f); do
+ install -Dm644 ${file} "${pkgdir}"/usr/share/icons/${file#resources/icons}
+ done
+
+ for file in $(find resources/i18n -type f -name *.mo); do
+ install -Dm644 ${file} "${pkgdir}"/usr/share/locale/${file#resources/i18n/generated}
+ done
+
+ install -Dm644 "${srcdir}"/ymuse.desktop -t "${pkgdir}"/usr/share/applications/
+}
diff --git a/ymuse.desktop b/ymuse.desktop
new file mode 100644
index 00000000000..17c7f6f10f7
--- /dev/null
+++ b/ymuse.desktop
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Categories=AudioVideo;
+Comment=Music Player Daemon client application for GTK.
+Comment[nl]=Music Player Daemon cliënt applicatie voor GTK.
+Comment[ru]=Приложение-клиент для Music Player Daemon и библиотеки GTK.
+Exec=ymuse
+Hidden=False
+Icon=ymuse
+Name=Ymuse
+GenericName=MPD client
+GenericName[nl]=MPD-cliënt
+GenericName[ru]=MPD-клиент
+Terminal=false
+Type=Application
+Keywords=sound;audio;MPD;GTK;Gnome;