summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: bea720ed7ddc0f0989fbc989e91eed0fe3664fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Sanjay Pavan <tsppavan7@gmail.com>

pkgname=nsxiv
_pkgname=nsxiv
pkgver=29
pkgrel=1
pkgdesc='Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer'
arch=('x86_64')
license=('GPL2')
conflicts=('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=('564a17d921172336f7cd463bf313e39f84e4bcf4fdc789326f4112f848aad039'
'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
}