summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 267510a538dd1ee3554e3259bbfd9a486a1a0027 (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
31
32
33
34
# Maintainer: Sanjay Pavan <tsppavan7@gmail.com>

pkgname='nsxiv-git'
_pkgname=nsxiv
pkgver=28.r0.g7a94a5e
pkgrel=1
pkgdesc='Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer (GIT VERSION)'
arch=('x86_64')
license=('GPL2')
conflicts=('nsxiv')
url='https://github.com/nsxiv/nsxiv.git'
depends=('imlib2' 'desktop-file-utils' 'xdg-utils' 'hicolor-icon-theme' 'libexif' 'libxft' 'giflib' 'libwebp')
makedepends=(git)
source=("${_pkgname}::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$srcdir/$_pkgname"
  ln -s config.def.h config.h
}

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

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