summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbrokenpip32018-10-16 19:22:42 +0200
committerbrokenpip32018-10-16 19:22:42 +0200
commit4e118bb74dcc8c4938384eafaf0fec0265f08b49 (patch)
treebb1a9f0c94da93f2bf017d79504853a904f1f511 /PKGBUILD
downloadaur-lxd-forward-git.tar.gz
first package version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..04eca87ea77
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Luigi Operoso <brokenpip3[at]gmail[dot]com>
+
+pkgname=lxd-forward-git
+_pkgname=lxd-forward
+pkgver=1
+pkgrel=1
+pkgdesc="A simple script to simplify port forward for LXC or LXD containers"
+arch=('any')
+url="https://github.com/jorgeluiztaioque/lxd-forward"
+license=('GPL3')
+depends=('lxd' 'iptables')
+makedepends=('git')
+source=("git+https://github.com/jorgeluiztaioque/lxd-forward")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ echo "$(git rev-list --count HEAD).$(git describe --always)"
+}
+
+package () {
+ cd "${_pkgname}"
+ install -Dm755 lxd-forward "${pkgdir}/usr/bin/${_pkgname}"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+}