# Description: Basit X resim görüntüleyici.
# URL: https://github.com/muennich/sxiv
# Packager: milisarge
# Depends on: desktop-file-utils hicolor-icon-theme imlib2 

name=sxiv
version=1.2
release=1

source=(
https://github.com/muennich/sxiv/archive/v$version.tar.gz
sxiv.giflib.patch)

build(){
    cd $name-$version
    patch -p1 -i ../sxiv.giflib.patch
    make
    make PREFIX=/usr DESTDIR=$PKG install
    make -C icon PREFIX=/usr DESTDIR=$PKG install
    install -Dm644 sxiv.desktop \
        $PKG/usr/share/applications/sxiv.desktop
}
