shashlik.paketlendi

This commit is contained in:
milisarge 2017-06-30 19:51:47 +03:00
parent e9311aae14
commit bb4768c1c9
3 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,44 @@
#!/usr/bin/env bash
# shashlik-gui 1.0
#
# Copyright (c) 2017 Elias Ojala
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
# https://github.com/theel0ja/shashlik-gui
FILE=`zenity --file-selection --title="Yüklemek istediğiniz bir .apk dosyası seçin"`
case $? in
0)
case "${FILE##*.}" in
apk)
zenity --question --text="$FILE dosyasını yüklemek istiyor musunuz?"
case $? in
0)
/opt/shashlik/bin/shashlik-install $FILE
;;
1)
zenity --warning --text="Uygulama yüklenemedi.";;
-1)
zenity --error --text="Beklenmeyen bir hata oluştu.";;
esac
;;
*)
zenity --error --text="Geçersiz dosya türü.";;
esac
;;
1)
zenity --error --text="Dosya seçilmedi.";;
-1)
zenity --error --text="Beklenmeyen bir hata oluştu.";;
esac

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Name=Android Apk Kur
CommentAndroid uygulamaları çalıştır
Icon=multimedia-volume-control
Exec=/bin/shashlik-gui.sh
Type=Application
Icon=/opt/shashlik/data/shashlik.png
StartupNotify=true
Terminal=false
Categories=X-XFCE;Utility;

View File

@ -0,0 +1,22 @@
# Description: Standart Linux masaüstü üzerinde Android uygulamaları çalıştır
# URL: http://www.shashlik.io
# Packager: Cihan Alkan
# Depends on: python3 kdialog zenity
name=shashlik
version=0.9.3
release=1
source=(http://static.davidedmundson.co.uk/shashlik/shashlik_$version.deb
shashlik.desktop
shashlik-gui.sh)
build() {
ar x ${SRC}/shashlik_$version.deb
tar -xJC $PKG -f data.tar.xz
install -dm755 $PKG/usr/bin
ln -s /opt/shashlik/bin/shashlik-run $PKG/usr/bin/
ln -s /opt/shashlik/bin/shashlik-install $PKG/usr/bin/
cp -f /$SRC/shashlik.desktop /usr/share/applications/shashlik.desktop
cp -f /$SRC/shashlik-gui.sh /bin/
}