# Tanım: Ağ üzerinden dosya paylaşma uygulaması
# URL: https://nitroshare.net
# Paketçi: Cihan Alkan
# Gerekler:qt5 libnotify

isim=nitroshare
surum=0.3.3
devir=1

kaynak=(https://github.com/nitroshare/nitroshare-desktop/archive/$surum.tar.gz::$isim-$surum.tar.gz
        https://raw.githubusercontent.com/oltulu/milis/master/nitroshare/aboutdialog.cpp
        https://raw.githubusercontent.com/oltulu/milis/master/nitroshare/tr.ts::$isim-tr.ts)

derle() {
   mv $isim-tr.ts $isim-desktop-$surum/src/data/ts/tr.ts
   mv aboutdialog.cpp $isim-desktop-$surum/src/application/
   cd $isim-desktop-$surum
  
   cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
   make

  make DESTDIR="$PKG" install
    # lisans
    install -Dm644 \
        "LICENSE.txt" \
        "$PKG/usr/share/licenses/$isim/LICENSE.txt"
	rm /sources/$surum.tar.gz

}
