[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Wed Mar 27 20:08:25 UTC 2019
Date: Wednesday, March 27, 2019 @ 20:08:24
Author: anthraxx
Revision: 444964
addpkg: bettercap-caplets v20190327.r302.3b47dd6-1
Added:
bettercap-caplets/
bettercap-caplets/repos/
bettercap-caplets/trunk/
bettercap-caplets/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Added: bettercap-caplets/trunk/PKGBUILD
===================================================================
--- bettercap-caplets/trunk/PKGBUILD (rev 0)
+++ bettercap-caplets/trunk/PKGBUILD 2019-03-27 20:08:24 UTC (rev 444964)
@@ -0,0 +1,30 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=bettercap-caplets
+pkgver=v20190327.r302.3b47dd6
+_gitcommit=3b47dd6c2f4f2bc87ddf3d536c6f4780ed6c245a
+pkgrel=1
+pkgdesc='Bettercap scripts (caplets) and proxy modules'
+url='https://github.com/bettercap/caplets'
+arch=('any')
+license=('GPL3')
+depends=('bettercap')
+makedepends=('git')
+source=(${pkgname}::"git+https://github.com/bettercap/caplets#commit=${_gitcommit}")
+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:
More information about the arch-commits
mailing list