blob: 8e14e97845041ff7ce1b7abc26bec20ad9b7c8fd (
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
|
# Maintainer: Falko Galperin <dr (dot) asasteghof (at) gmail (dot) com>
pkgname=paper2remarkable
pkgver=0.9.12
pkgrel=2
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' 'python-lxml-html-clean')
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"
}
|