summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfunilrys2017-04-09 22:20:21 +0200
committerfunilrys2017-04-09 22:20:21 +0200
commit50bdc0d4af45675449e9cc78cddbc706648733ba (patch)
treee474f78c6c44246f6cd3e01cbdc111a14ec1323f
parent690234da391d39ef0e939851098486d6a966dd2d (diff)
downloadaur-50bdc0d4af45675449e9cc78cddbc706648733ba.tar.gz
Update in order to avoid error(s) with auto update. We do not use *.AppImage anymore
-rw-r--r--PKGBUILD52
1 files changed, 25 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a5f6c3ecdef..0d91c3bf3b9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,44 @@
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
pkgname=kaku-bin
pkgver=1.8.5
-pkgrel=2
+pkgrel=1
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')
-optdepends=('xdialog: .desktop file installation dialog'
- 'zenity: .desktop file installation dialog'
- 'kdialog: .desktop file installation dialog'
- 'libnotify: Desktop notifications')
conflicts=('kaku')
options=(!strip)
source=("https://raw.githubusercontent.com/EragonJ/Kaku/master/LICENSE")
-source_x86_64=("https://github.com/EragonJ/Kaku/releases/download/$pkgver/Kaku-$pkgver-$CARCH.AppImage")
-source_i686=("https://github.com/EragonJ/Kaku/releases/download/$pkgver/Kaku-$pkgver-ia32.AppImage")
+source_x86_64=("https://github.com/funilrys/Kaku/releases/download/$pkgver-Linux/Kaku-$pkgver.tar.gz")
+source_i686=("https://github.com/funilrys/Kaku/releases/download/$pkgver-Linux/Kaku-$pkgver-ia32.tar.gz")
sha512sums=('354016d1de60b330e50f996dcdf61989091b44b28f096f7cb83f83c006cb2d51ef3da94a49d2ba73b71bc294a206a524d38a6b3c0f5bf1cc3ac6048d57624b04')
-sha512sums_x86_64=('e9112dd111fcfc4d1edc9bc05f21ea3bca1f90d5759498e64a0fc453fd50fa7803f005c50f01e2b640474e497482068d8297cf020d11ce1293dc98dea80d9206')
-sha512sums_i686=('d99a5f2751fd0552e04621eb40067eb90d721a29f7be1c4d037aaff51dafbaa277d92f0e23b9293585498f6f4697f03b8638f27081fd0a34c3472fa4383e5cf0')
-
-if [ $CARCH == "x86_64" ]
-then
- noextract=("Kaku-$pkgver-$CARCH.AppImage")
-else
- noextract=("Kaku-$pkgver-ia32.AppImage")
-fi
+sha512sums_x86_64=('6de387c00e99e2b732a44942ef86be11ba98bce4869bacb6791b6cb1618f26113ae33a31ea3d9a98da2d07fb4886a71656e31458ea4ae29a7ed191565e4e3f26')
+sha512sums_i686=('66cacc2f4e30ac4472975c46881e4446ad645d7f4adc7a6d6487c02c2a29036656017a367004b34d5ce24fdef0590b84c172fbdcabe5988e9cf5eb16e29b03f9')
package() {
- install -d "$pkgdir"/{opt/kaku,usr/bin}
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- if [ $CARCH == "x86_64" ]
- then
- install -m755 Kaku-$pkgver-$CARCH.AppImage "$pkgdir"/opt/kaku
- ln -s /opt/kaku/Kaku-$pkgver-$CARCH.AppImage "$pkgdir"/usr/bin/kaku
- else
- install -m755 Kaku-$pkgver-ia32.AppImage "$pkgdir"/opt/kaku
- ln -s /opt/kaku/Kaku-$pkgver-ia32.AppImage "$pkgdir"/usr/bin/kaku
- fi
+ install -dm755 "$pkgdir"{/usr/share/applications,/usr/{bin,share/$pkgname/{locales,misc/linux,resources}}}
+
+ if [ $CARCH == "x86_64" ]
+ then
+ cd $srcdir/Kaku-$pkgver
+ else
+ cd $srcdir/Kaku-$pkgver-ia32
+ fi
+
+ install -D -m644 locales/* "$pkgdir/usr/share/$pkgname/locales"
+ 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/"
+
+ 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/"
+ ln -s $pkgdir/usr/share/$pkgname/Kaku $pkgdir/usr/bin/kaku
}