makedeb


nsxiv 30-2


Neo or New or Not Simple or Small or Suckless X Image Viewer

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for nsxiv.

# Maintainer:  only_vip <onlyme_vip@protonmail.com>
# thanks to AUR maintianer: Sanjay Pavan <withercubes@protonmail.com>
pkgname=nsxiv
pkgver=30
pkgrel=2
pkgdesc='Neo or New or Not Simple or Small or Suckless X Image Viewer'
arch=('amd64')
license=('GPL2')
url='https://codeberg.org/nsxiv/nsxiv'
depends=('libimlib2' 'desktop-file-utils' 'xdg-utils'  'hicolor-icon-theme')
makedepends=('libimlib2-dev' 'libexif-dev' 'libwebp-dev')
optdepends=('libxft2' 'fontconfig' 'giflib-tools' 'libexif12' 'libwebp6')
source=("${pkgname}-$pkgver.tar.gz"::"https://codeberg.org/nsxiv/nsxiv/archive/v$pkgver.tar.gz")
sha256sums=('a916d1385872ccf0b55fbf6b8546d05fcbbbb8b0a92579494e64c6bd22fc7941')
conflicts=('nsxiv')
provides=('nsxiv')

prepare() {
  cd "${srcdir}/${pkgname}"
  [ ! -f config.h ] && cp config.def.h config.h
  sed -i -e '/^install: / s|: all|:|' Makefile
}

build() {
  make -C "${pkgname}"
}

package() {
  cd "${srcdir}/${pkgname}"
  make PREFIX=/usr DESTDIR="${pkgdir}" install-all
}