description="Simple X Image Viewer"
url="https://github.com/muennich/sxiv"

packager="tnut <tnut@nutyx.org>"
contributors="Greg"

makedepends=(imlib2 libexif xorg-libxft)
run=(desktop-file-utils xdg-utils hicolor-icon-theme)
name=sxiv
version=26

PKGMK_KEEP_SOURCES="no"
source=(https://github.com/muennich/$name/archive/v$version.tar.gz)

prepare() {
  cd $name-$version
  ln -s config.def.h config.h
}

build() {

make -C $name-$version

}

package() {

cd $name-$version

  make PREFIX=/usr DESTDIR=$PKG install
  make -C icon PREFIX=/usr DESTDIR=$PKG install
  install -Dm644 sxiv.desktop $PKG/usr/share/applications/sxiv.desktop

}
