summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 641b43e84f0717968943fcf2fe07656642f47784 (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
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Matthew Tran <0e4ef622 at gmail.com>
# Contributor: Pavel Pletenev <cpp.create at gmail dot com>
pkgname=vnlog
pkgver=1.38
pkgrel=1
pkgdesc="Tools to manipulate whitespace-separated ASCII logs"
arch=('x86_64')
url="https://github.com/dkogan/vnlog"
license=('LGPL-2.1-or-later')
depends=('perl'
         'glibc'
         'mawk'
         'perl-text-table'
         'perl-list-moreutils')
makedepends=('mrbuild' 'make')
optdepends=('python' 'python-numpy')
provides=('vnlog')
source=("https://github.com/dkogan/vnlog/archive/v${pkgver}.tar.gz")
sha256sums=('86a295953ca6f5fc4e16d97246434f6e68f597766c4c6d1e12953033bd66262f')

build() {
  cd "$srcdir/${pkgname}-${pkgver}"

  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps

  make all doc
}

package() {
  cd "$srcdir/${pkgname}-${pkgver}"

  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
  mkdir "$pkgdir/usr/share/perl5/vendor_perl"
  mv "$pkgdir/usr/share/perl5/Vnlog" "$pkgdir/usr/share/perl5/vendor_perl"

  install -Dm644 README.org "$pkgdir/usr/share/doc/vnlog/README.org"
  install -Dm644 Changes "$pkgdir/usr/share/doc/vnlog/Changes"

  mkdir -p "$pkgdir/usr/share/zsh/site-functions"
  mkdir -p "$pkgdir/usr/share/bash-completion/completions"
  cp completions/zsh/* "$pkgdir/usr/share/zsh/site-functions"
  cp completions/bash/* "$pkgdir/usr/share/bash-completion/completions"
}