summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1c981d084a7ae33fbc3cc54bca6e1c7fc65b045 (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
31
32
33
34
35
36
37
38
# Maintainer: ZappaBoy <federico.zappone at justanother dot group>
pkgname=traefik-warden-git
pkgbase=traefik-warden-git
pkgver=1.0.0
pkgrel=1
pkgdesc="Warden is a Just Another project that helps to manage services through Traefik."
arch=('any')
url="https://github.com/Just-Another-Organization/traefik-warden"
license=('GNU AFFERO GENERAL PUBLIC LICENSE')
depends=()
makedepends=('git' 'python-pip')
provides=(warden)
source=('git+https://github.com/Just-Another-Organization/traefik-warden')
md5sums=('SKIP')

prepare() {
  python -m pip install yq
}

instructions() {
  /bin/cat << EOF
Remember to add the WARDEN_ROOT="$HOME/.warden/" to your ~/.bashrc:

  echo 'export WARDEN_ROOT="\$HOME/.warden/"' >> \$HOME/.bashrc

EOF
}

package() {
  cd "$srcdir/traefik-warden/"
  chmod +x "./install.sh"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname}/README.md"
  ./install.sh "$HOME/.warden/"
  instructions
}

# vim:set ts=2 sw=2 et: