summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f58e263d746d57392fc236d3aa47aca524e2e3a (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
# Maintainer: Matthew Gamble <git@matthewgamble.net>

pkgname=chkcrontab
pkgver=1.7
pkgrel=5
pkgdesc="A tool for checking system crontab files for errors and common mistakes."
arch=("any")
url="https://github.com/lyda/chkcrontab"
license=("Apache")
depends=("python")
source=("https://github.com/lyda/chkcrontab/archive/v${pkgver}.tar.gz")
sha256sums=("1725172dbdea26f1aef915b9acd7100605e49f8675761900bc0992a227d767b9")

build() {
    cd "chkcrontab-${pkgver}"

    python setup.py build
}

package() {
    cd "chkcrontab-${pkgver}"

    PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

    install -Dm644 README.rst "${pkgdir}/usr/share/doc/chkcrontab/README.rst"
    install -Dm644 doc/chkcrontab.1 "${pkgdir}/usr/share/man/man1/chkcrontab.1"
}