aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 806379befbec40e76778edff80535c2b58766251 (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=1.0
pkgrel=1
pkgdesc="A CLI tool to extract a part of a website, create a PDF, and translate it to any language"
arch=('any')
url="https://github.com/simit22/web2pdf"
license=('GPL')
depends=('python' 'python-requests' 'python-beautifulsoup4' 'python-reportlab')
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"
}