# Tanım: Video düzenleyici
# URL: https://www.shotcut.org/
# Paketçi: Cihan_Alkan
# Gerekler: qt5 mlt movit ffmpeg x264 lame frei0r-plugins ladspa
# Grup: medya

isim=shotcut
surum=17.12
devir=1

kaynak=(https://github.com/mltframework/shotcut/archive/v17.12.tar.gz::$isim-$surum.tar.gz)

derle() {

	cd $SRC/$isim-$surum
    qmake-qt5 PREFIX='/usr' \
        QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
        QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}"
    make

    make INSTALL_ROOT="${PKG}" install
# Başlatıcı 
mkdir -pv $PKG/usr/share/applications &&
cat > $PKG/usr/share/applications/$isim.desktop << "EOF" &&
[Desktop Entry]
Type=Application
Name=Shotcut
GenericName=Video Düzenleyici
Comment=Video düzenleyici
Exec=shotcut
Icon=applications-multimedia
Terminal=false
Categories=AudioVideo;Video;AudioVideoEditing;
EOF
cd /$SRC/

}
