# Maintainer: Yaroslav de la Peña Smirnov pkgname=nsxiv-yarps _pkgname=nsxiv pkgver=30 pkgrel=1 pkgdesc='Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer' arch=('x86_64') license=('GPL2') conflicts=('nsxiv' 'nsxiv-git') url='https://github.com/nsxiv/nsxiv' depends=('imlib2' 'desktop-file-utils' 'xdg-utils' 'hicolor-icon-theme' 'libexif' 'libxft' 'giflib' 'libwebp') source=("$pkgname-$pkgver.tar.gz"::"https://github.com/nsxiv/nsxiv/archive/v$pkgver.tar.gz" "config.h") sha256sums=('SKIP' '6679eeb450b9fed45e37a106afc2d42bcee0f3512cd1333f752820b5a0e52e27') prepare() { cp "$srcdir/config.h" "$srcdir/$_pkgname-$pkgver/" cd "$srcdir/$_pkgname-$pkgver" } build() { make -C "$_pkgname-$pkgver" } package() { cd "$srcdir/$_pkgname-$pkgver" make PREFIX=/usr DESTDIR="$pkgdir" install-all }