# Maintainer: Falko Galperin pkgname=paper2remarkable pkgver=0.9.12 pkgrel=1 pkgdesc="Easily download an academic paper and send it to a reMarkable." arch=(any) url="https://github.com/GjjvdBurg/paper2remarkable" license=('MIT') # Note: While we have the choice between qpdf and pdftk, # python-pikepdf depends on qpdf anyway, so we use that here. depends=('python>=3.6.0' 'qpdf' 'ghostscript' 'poppler' 'rmapi' 'python-pikepdf>=2.9.0' 'python-beautifulsoup4>=4.8' 'python-html2text>=2020.1.16' 'python-markdown>=3.1.1' 'python-pdfplumber>=0.5' 'python-yaml>=5.1' 'python-readability-lxml>=0.7.1' 'python-regex>=2018.11' 'python-requests>=2.21' 'python-titlecase>=0.12' 'python-unidecode>=1.1' 'python-weasyprint>=51' 'python-pycryptodome' 'python-cssselect') makedepends=('python-setuptools') optdepends=('python-readabilipy: Improves output of web articles') changelog=$pkgname.changelog.md install=$pkgname.install source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") sha256sums=("b2280295ddc9adf69d9082189e9d4c1235bea63ba2143c80ebd0ec5805249b59") build() { cd "$pkgname-$pkgver/" python setup.py build } package() { cd "$pkgname-$pkgver/" python setup.py install --root="$pkgdir" --optimize=1 --skip-build # move man page to directory specified by FHS guidelines mkdir -p "$pkgdir/usr/share/" mv "$pkgdir/usr/man" "$pkgdir/usr/share/man" }