summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 45 insertions, 0 deletions
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/
+}