summaryrefslogtreecommitdiff
path: root/pcr/papis/PKGBUILD
blob: 16a0a8edde138a968f08bc3b7e3b018587d78c32 (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
pkgname="papis"
pkgver=0.7
pkgrel=1
pkgdesc="Powerful and highly extensible command-line based document and bibliography manager."
arch=(any)
url="https://github.com/papis/papis"
license=('GPLv3')
depends=("python-setuptools"
         "python-papis_python_rofi"
         "python-requests"
         "python-argcomplete"
         "python-pyparsing"
         "arxiv2bib"
         "python-yaml"
         "python-chardet"
         "python-beautifulsoup4"
         "python-vobject"
         "python-prompt_toolkit"
         "python-bibtexparser"
         "python-unidecode"
         "python-pyparser"
         "python-pypi-magic"
         "python-pylibgen"
         "python-urwid"
         "python-habanero"
         "python-slugify"
         "python-click")
source=($pkgname-$pkgver.tar.gz::https://github.com/papis/papis/archive/v$pkgver.tar.gz
        $pkgname-vim-gui-add-notes-edit-key.patch
        $pkgname-click-0.7.patch::https://github.com/papis/papis/commit/7414634a11c61268a98edd26a4de2d65cb44a28b.patch)
sha256sums=('77381dfe764aaf1d0add1ed943697085a6c2cd596448681764678ae95490901c'
            'ec7a2ada63b5eac58cc89e0230ef6db3438357c2669b7c0f88e247e0266cbe53'
            '389bb2a6b309f949f1be6ac400f4ea7f80eac2f5a7101d98a0f1e0b8ce2a04d1')

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
  patch -Np1 -i "$srcdir/$pkgname-vim-gui-add-notes-edit-key.patch"
  patch -Np1 -i "$srcdir/$pkgname-click-0.7.patch"
}

build () {
	cd "$srcdir/$pkgname-$pkgver"
  sed -i "s/.*configparser/#&/" setup.py
	python setup.py build
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	python setup.py install --root="$pkgdir/" --prefix="/usr"
}