diff options
Diffstat (limited to 'pcr/papis')
-rw-r--r-- | pcr/papis/PKGBUILD | 63 |
1 files changed, 22 insertions, 41 deletions
diff --git a/pcr/papis/PKGBUILD b/pcr/papis/PKGBUILD index 16a0a8edd..186f8c89a 100644 --- a/pcr/papis/PKGBUILD +++ b/pcr/papis/PKGBUILD @@ -1,50 +1,31 @@ -pkgname="papis" -pkgver=0.7 -pkgrel=1 +# Maintainer: Andreas Grapentin <oaken-source@parabola.nu> + +_pkgname=papis +pkgname=$_pkgname +pkgver=0.7.5 +pkgrel=2 pkgdesc="Powerful and highly extensible command-line based document and bibliography manager." -arch=(any) +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') +license=('GPL3') + +_pypi=(click requests filetype pyparsing arxiv2bib yaml chardet + beautifulsoup4 prompt_toolkit bibtexparser slugify pyparser + pylibgen habanero isbnlib) +depends=(python "${_pypi[@]/#/python-}") +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" + $pkgname-vim-gui-add-notes-edit-key.patch) +sha256sums=('1a2a3f6673741f858d4ba41b64255e2fca33b17c5abb642608dbb4ee117d0ac4' + 'ec7a2ada63b5eac58cc89e0230ef6db3438357c2669b7c0f88e247e0266cbe53') prepare() { - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$_pkgname-$pkgver" + sed -i '/configparser/d' setup.py 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" + cd "$srcdir"/$_pkgname-$pkgver + python setup.py install --root="$pkgdir" } |