summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7ddcf242328c0ca77cb63fcbf477f4b3d4ddbf5 (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
pkgname=certcheck-git
pkgver=1
pkgrel=1
pkgdesc="CLI tool to check x.509 cert validity on a set of TLS/SSL servers"
arch=(any)
url="https://github.com/2ion/certcheck"
license=('GPL')
depends=('python>=3.2' python-pyopenssl python-termcolor python-terminaltables)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('FOLDER::git+https://github.com/2ion/certcheck.git#branch=master')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

check() {
	cd "$srcdir/${pkgname%-git}"
  python -m py_compile certcheck
}

package() {
	cd "$srcdir/${pkgname%-git}"
  install -d "$pkgdir"/usr/bin/
  install -m 755 -t "$pkgdir"/usr/bin/ certcheck
}