summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c438031c0fe10e793b08dcedfc8713f9ce1a2a04 (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
36
37
# Maintainer: Brett Cornwall <ainola@archlinux.org>
# Contributor: Sergey Mastykov

pkgname=linkchecker
pkgver=10.0.1
pkgrel=1
pkgdesc="Check websites for broken links."
arch=('any')
url="https://github.com/linkcheck/linkchecker"
license=('GPL2')
makedepends=('python-pytest')
depends=(
    'python-requests'
    'python-dnspython'
    'python-xdg'
    'python-beautifulsoup4'
)
optdepends=(
    'python-argcomplete: For command-line completion'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/linkchecker/linkchecker/archive/v$pkgver.tar.gz")
sha256sums=('81641ac8794d355585fa8807b525a868e7ff13a4d85d04c2aba13e2a25e71484')

build() {
    cd "$pkgname-$pkgver"
    python setup.py build
}

# Upstream tests need to be fixed first
#check() {
#    cd "$pkgname-$pkgver" && python setup.py test
#}

package() {
    cd "$pkgname-$pkgver"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}