summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfunilrys2017-05-12 22:28:19 +0200
committerfunilrys2017-05-12 22:28:19 +0200
commit9e856ac283d1b492e353d48ab8777dc918e89f1f (patch)
treebb54d0a9a85efb6b3334c2c781dbf9257c4af1a7
parent5ce4e79e1bc644b62c1920128d06a1594ac6955a (diff)
downloadaur-9e856ac283d1b492e353d48ab8777dc918e89f1f.tar.gz
Fix recent bugs around video player and autoupdater
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD33
-rw-r--r--kaku-bin.install13
3 files changed, 31 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 730fe6a0f87..3f0f0b2eb7c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = kaku-bin
pkgdesc = The next generation music client.
pkgver = 1.8.5
- pkgrel = 1
+ pkgrel = 2
url = http://kaku.rocks
+ install = kaku-bin.install
arch = x86_64
arch = i686
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 22637c729e4..6f4608f9193 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,18 @@
+#!/bin/bash
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
+
+_pkg_short_name='kaku'
+
pkgname=kaku-bin
pkgver=1.8.5
-pkgrel=1
+pkgrel=2
pkgdesc="The next generation music client."
-
arch=('x86_64' 'i686')
url="http://kaku.rocks"
license=('MIT')
depends=('gconf' 'gtk2' 'fuse' 'xdg-utils' 'libxtst' 'libxss' 'nss' 'alsa-lib')
conflicts=('kaku')
+install='kaku-bin.install'
options=(!strip)
source=("https://raw.githubusercontent.com/EragonJ/Kaku/master/LICENSE" "http://kaku.rocks/public/img/logo.png")
@@ -20,27 +24,22 @@ sha512sums_x86_64=('6de387c00e99e2b732a44942ef86be11ba98bce4869bacb6791b6cb1618f
sha512sums_i686=('66cacc2f4e30ac4472975c46881e4446ad645d7f4adc7a6d6487c02c2a29036656017a367004b34d5ce24fdef0590b84c172fbdcabe5988e9cf5eb16e29b03f9')
package() {
- install -dm755 "$pkgdir"{/usr/share/applications,/usr/{bin,share/$pkgname/{locales,misc/linux,resources}}}
- install -Dm644 logo.png "$pkgdir/usr/share/$pkgname/"
+ install -d ${pkgdir}{/usr/share/applications,/usr/{bin,share/${pkgname}/}}
if [ $CARCH == "x86_64" ]
then
- cd $srcdir/Kaku-$pkgver
+ cp -r ${srcdir}/Kaku-${pkgver}/* ${pkgdir}/usr/share/${pkgname}
else
- cd $srcdir/Kaku-$pkgver-ia32
+ cp -r ${srcdir}/Kaku-${pkgver}-ia32/* ${pkgdir}/usr/share/${pkgname}
fi
+ sed -i "s|Icon=/usr/share/kaku/logo.png|Icon=/usr/share/${pkgname}/logo.png|g" ${pkgdir}/usr/share/${pkgname}/misc/linux/*.desktop
- install -D -m644 locales/* "$pkgdir/usr/share/$pkgname/locales"
- sed -i 's|Icon=/usr/share/kaku/logo.png|Icon=/usr/share/kaku-bin/logo.png|g' misc/linux/*.desktop
- install -Dm644 misc/linux/*.desktop "$pkgdir/usr/share/$pkgname/misc/linux"
- install -Dm644 misc/linux/kaku.desktop $pkgdir/usr/share/applications/
-
- find . -type f -maxdepth 1 -exec cp {} "$pkgdir/usr/share/$pkgname/" \; 2>/dev/null
- cp -r resources/* "$pkgdir/usr/share/$pkgname/resources/"
+ install -Dm644 ${srcdir}/logo.png ${pkgdir}/usr/share/${pkgname}/
+ install -Dm644 ${pkgdir}/usr/share/${pkgname}/misc/linux/kaku.desktop ${pkgdir}/usr/share/applications/
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
- find "$pkgdir/usr/share/$pkgname/" -type f -exec chmod 644 {} \; 2>/dev/null
- chmod 755 "$pkgdir/usr/share/$pkgname/Kaku" "$pkgdir/usr/share/$pkgname/libnode.so" "$pkgdir/usr/share/$pkgname/libffmpeg.so"
- chmod 755 -R "$pkgdir/usr/share/$pkgname/resources/"
+ chgrp -R audio ${pkgdir}/usr/share/${pkgname}
+ chmod -R 775 ${pkgdir}/usr/share/${pkgname}
- ln -s /usr/share/$pkgname/Kaku $pkgdir/usr/bin/kaku
+ ln -s /usr/share/${pkgname}/Kaku ${pkgdir}/usr/bin/${_pkg_short_name}
}
diff --git a/kaku-bin.install b/kaku-bin.install
new file mode 100644
index 00000000000..d7e9197a70f
--- /dev/null
+++ b/kaku-bin.install
@@ -0,0 +1,13 @@
+post_install() {
+ chgrp -R audio /usr/share/kaku-bin
+ chmod -R 775 /usr/share/kaku-bin
+ cat <<END
+The files are installed under group "audio". Please add your user
+to this group with "usermod -a -G audio", otherwise you couldn't use
+the autoupdater.
+END
+}
+
+post_upgrade() {
+ post_install
+}