aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d81a7b01d36a46f82211cd00bf34428e3af36d47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Maintainer: Your Name <your_email@example.com>
pkgname=web2pdf
pkgver=3.0
pkgrel=1
pkgdesc="A CLI tool to extract a part of a website, create a PDF"
arch=('any')
url="https://github.com/simit22/web2pdf"
license=('GPL')
depends=('python' 'python-requests' 'python-beautifulsoup4' 'python-weasyprint' 'imagemagick')
source=("web2pdf.py")
md5sums=('SKIP')

package() {
    cd "$srcdir"
    install -Dm755 web2pdf.py "$pkgdir/usr/bin/web2pdf.py"
    ln -s /usr/bin/web2pdf.py "$pkgdir/usr/bin/web2pdf"
    sed -i '1s|^|#!/usr/bin/env python\n|' "$pkgdir/usr/bin/web2pdf.py"
}