summaryrefslogtreecommitdiffstats
path: root/vifm/PKGBUILD
blob: 5219a719621e036b91982fbaaa3a69d761d634f9 (plain) (blame)
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
35
36
37
# Maintainer: Justin Gassner <justin.gassner@web.de>

_pkgname=vifm
pkgname=$_pkgname-jxir
pkgver=0.10.r37.gc8d220ad3
pkgrel=1
pkgdesc='A file manager with curses interface, which provides Vi[m]-like environment'
arch=('x86_64')
url="https://vifm.info/"
license=('GPL')
depends=('file' 'ncurses')
optdepends=('perl: vifm-convert-dircolors')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/$_pkgname/$_pkgname.git")
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/$_pkgname"
  autoreconf -i
  ./configure \
    --prefix=/usr \
    --disable-desktop-files \
    --without-gtk \
    --without-X11
  make
}

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