milis/talimatname/genel/r/rosa-imagewriter/talimat

46 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-02-11 22:51:49 +01:00
# Tanım: USB kurulum Belleği Hazırlama
# URL: http://wiki.rosalab.ru
# Paketçi: Cihan_Alkan
# Gerekler: qt5
# Grup: sistem
isim=rosa-imagewriter
surum=2.6.2.0
devir=1
kaynak=(https://abf.io/soft/rosa-imagewriter/archive/${isim}-version-${surum}.tar.gz
logo-rosa.png
imagewriter-tr_TR.ts)
derle() {
cp -r $SRC/logo-rosa.png $SRC/${isim}-version-${surum}/res/
cd $SRC/${isim}-version-${surum}
qmake-qt5 RosaImageWriter.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
make
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/share/icons
mkdir -p $PKG/usr/share/RosaImageWriter/lang
cp -r $SRC/${isim}-version-${surum}/RosaImageWriter $PKG/usr/share/RosaImageWriter/
cp -r $SRC/${isim}-version-${surum}/res/icon-rosa.svg $PKG/usr/share/icons/
2018-02-11 23:01:33 +01:00
ln -s /usr/share/RosaImageWriter/RosaImageWriter $PKG/usr/bin/RosaImageWriter
2018-02-11 22:51:49 +01:00
# Başlatıcı
mkdir -pv $PKG/usr/share/applications &&
cat > $PKG/usr/share/applications/$isim.desktop << "EOF" &&
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=/usr/share/icons/icon-rosa.svg
Exec=/usr/share/RosaImageWriter/RosaImageWriter
Categories=GNOME;GTK;Utility;
Name=USB Kalıp Yazıcı
Comment=Boot edebilir USB bellek hazırla
EOF
/usr/lib/qt5/bin/lrelease ../imagewriter-tr_TR.ts -qm $PKG/usr/share/RosaImageWriter/lang/tr_TR.qm
}