summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b2a06a2be2f1ea5b0257769630c8aa3fcb8030a (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=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"
}