# Tanım: apvlv, vim benzeri bir PDF/DJVU/UMD/TXT görüntüleyicidir.
# URL: http://github.com/naihe2010/apvlv
# Paketçi: milisarge
# Gerekler: cmake webkitgtk2 djvulibre poppler-glib gtk2
# Grup: ofis_düzenleme

isim=apvlv
surum=0.1.f7f7b9c
devir=2
kaynak=(
        https://github.com/downloads/naihe2010/apvlv/$isim-$surum-Source.tar.gz
        $isim.desktop)

derle(){
    cd $isim-$surum-Source
    mkdir -p build
    cd build
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
          -DAPVLV_WITH_DJVU=yes -DAPVLV_WITH_TXT=yes \
          -DAPVLV_WITH_UMD=no  ..
    make
    make DESTDIR=$PKG install
    # desktop integration
    install -Dm644 $SRC/$isim.desktop \
        $PKG/usr/share/applications/$isim.desktop
}
