summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoranthraxx2019-03-27 21:39:38 +0100
committeranthraxx2019-03-27 21:39:38 +0100
commit24af5a2c7e739c54136b1adda7a2c3248c7e089e (patch)
tree7585fdba099bc6a19bb7fef26ba1b8e7136d4845 /PKGBUILD
downloadaur-24af5a2c7e739c54136b1adda7a2c3248c7e089e.tar.gz
addpkg: bettercap-caplets-git v20190327.r302.3b47dd6-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e4aed403948
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=bettercap-caplets-git
+pkgver=v20190327.r302.3b47dd6
+pkgrel=1
+pkgdesc='Bettercap scripts (caplets) and proxy modules'
+url='https://github.com/bettercap/caplets'
+arch=('any')
+license=('GPL3')
+depends=('bettercap')
+makedepends=('git')
+provides=('bettercap-caplets')
+conflicts=('bettercap-caplets')
+source=(${pkgname}::"git+https://github.com/bettercap/caplets")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ printf "v%s.r%s.%s" "$(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD)" \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd ${pkgname}
+ install -d "${pkgdir}/usr/share/bettercap/caplets"
+ cp -r . "${pkgdir}/usr/share/bettercap/caplets"
+ rm -r "${pkgdir}/usr/share/bettercap/caplets/"{.git,.gitignore,Makefile,README.md,LICENSE.md}
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: