milis/talimatname/genel/a/aqemu/talimat

33 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Qt5 ile yazılmış bir QEMU arayüzü
# URL: https://github.com/tobimensch/aqemu
# Paketçi: yasarciv67@gmail.com
# Gerekler: cmake qt5 qemu-all libvncserver
isim=aqemu
surum=0.9.2
devir=3
kaynak=(https://github.com/tobimensch/$isim/archive/v$surum.tar.gz::$isim-$surum.tar.gz
https://raw.githubusercontent.com/yasarciv/aqemu/master/resources/translations/Turkish.ts::$isim-Turkish.ts
https://raw.githubusercontent.com/yasarciv/aqemu/master/resources/menu_data/aqemu.desktop::$isim-aqemu.desktop)
derle() {
cd $isim-$surum
cp /usr/bin/rcc-qt5 /usr/bin/rcc
cp $SRC/$isim-Turkish.ts $SRC/$isim-$surum/resources/translations/Turkish.ts
cp $SRC/$isim-aqemu.desktop $SRC/$isim-$surum/menu_data/aqemu.desktop
mkdir build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAN_PAGE_COMPRESSOR=bzip2 \
-DCMAKE_BUILD_TYPE=Release \
../
make
make translations_target
make DESTDIR="$PKG" install
for dil in $(ls $SRC/$isim-$surum/resources/translations/*.ts | sed 's/\.ts$//' );do
lrelease-qt5 -compress -silent -nounfinished ${dil}.ts -qm $PKG/usr/share/$isim/$(basename $dil).qm
done
rm /usr/bin/rcc
}