summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fe9898744fea391bf3676e4127870e362db5a20 (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
46
47
48
49
50
51
52
53
54
55
56
57
# maintainer: novenary <streetwalkermc@gmail.com>
# Contributor: schuay <jakob.gruber@gmail.com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Previous maintainer: Roman Zimbelmann <romanz@lavabit.com>

_pkgname=ranger
pkgname=ranger-sixel
pkgver=1.9.3
pkgrel=1
pkgdesc='Simple, vim-like file manager, with PR 2234 for sixel image support'
arch=('any')
url='https://ranger.github.io'
license=('GPL')
depends=('python')
optdepends=(
    'atool: for previews of archives'
    'elinks: for previews of html pages'
    'ffmpegthumbnailer: for video previews'
    'highlight: for syntax highlighting of code'
    'libcaca: for ASCII-art image previews'
    'lynx: for previews of html pages'
    'mediainfo: for viewing information about media files'
    'odt2txt: for OpenDocument texts'
    'perl-image-exiftool: for viewing information about media files'
    'poppler: for pdf previews'
    'python-chardet: in case of encoding detection problems'
    'sudo: to use the "run as root"-feature'
    'transmission-cli: for viewing bittorrent information'
    'ueberzug: for previews of images'
    'w3m: for previews of images and html pages')
checkdepends=('python-pytest')
conflicts=('ranger')
provides=('ranger')
source=(https://ranger.github.io/${_pkgname}-${pkgver}.tar.gz{,.sig}
        'ranger_sixel.patch::https://github.com/3ap/ranger/compare/cd17ea8c1d2cd89754f625df25134f00c7227b65...c7dab8c8dba2ed54821f5b016475fa196f887d0f.patch')
sha512sums=('5cd7bea714a6542d0a5445f5f0cf929b2df4377df3ef710f3786c6c46dd58b017a8060cde3969076637bfaac03c13297d3020fd82f4574dc49546ca223c0e8d3'
            'SKIP'
            '2c61b4e4b3951072a32afea78524e1e17611f689aa76b9b3da99cb0c376acfffe08d8e18d66c69c8eeefae3fd4c7d30bc8d24decba2ead181b8abdd444cd05b8')
validpgpkeys=('1E9B36EC051FF6F7FFC969A7F08CE1E200FB5CDF'
              '66FA95C0F1619BDA520A41F60D63346A5D15D055') # huterich

prepare() {
  cd ${_pkgname}-${pkgver}
  patch -Np1 -i ../ranger_sixel.patch
}

check() {
  cd ${_pkgname}-${pkgver}
  make test_pytest
}

package() {
  cd ${_pkgname}-${pkgver}
  python setup.py install --root="${pkgdir}" --optimize=1
}

# vim: ts=2 sw=2 et: