# Tanım: MATE belge görüntüleyici
# URL: http://mate-desktop.org
# Paketçi: yasarciv67@gmail.com
# Gerekler: caja caja-extensions gobject-introspection intltool itstool djvulibre libspectre poppler-glib webkitgtk2
# Grup: ofis_düzenleme

isim=atril
surum=1.20.0
devir=1
kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz)

derle() {
cd $isim-$surum
./configure \
        --prefix=/usr \
        --libexecdir=/usr/lib/${isim} \
        --with-gtk=2.0 \
        --enable-djvu \
        --enable-dvi \
        --enable-epub \
        --enable-t1lib \
        --enable-pixbuf \
        --enable-comics \
        --enable-xps \
        --enable-introspection
        
 #https://bugzilla.gnome.org/show_bug.cgi?id=656231
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
   
}
