summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJens John2016-10-11 21:36:31 +0900
committerJens John2016-10-11 21:36:31 +0900
commitad077f610344d9dfcfbbedff924e6fec9a89d569 (patch)
tree43311db5cf2c4a4f11f390f08c376f7d0a687fa2 /PKGBUILD
downloadaur-ad077f610344d9dfcfbbedff924e6fec9a89d569.tar.gz
v:1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a7ddcf24232
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}