# Maintainer: Ayrton Araujo # Maintainer: Fabien LEFEBVRE # Contributor: Morris Jobke pkgname=dokku pkgver=0.18.2 pkgrel=2 pkgdesc="Docker powered mini-Heroku in around 100 lines of Bash." arch=(any) url="https://github.com/dokku/dokku" license=(MIT) depends=( 'bind-tools' 'docker' 'dos2unix' 'go' 'gliderlabs-sigil' 'herokuish' 'net-tools' 'nginx' 'openbsd-netcat' 'plugn' 'procfile-util' 'rsyslog' 'sshcommand' ) source=( "https://github.com/dokku/dokku/archive/v${pkgver}.zip" "${pkgname}.install" ) sha256sums=('b7a71a0f9566391939643eb08d155109068ae330db1d37b0e2af9523c2fed3d0' '5dd473290d9159d27286628bb82a93adb6ea43a12057e625d02abd0bf332384c') install="${pkgname}.install" prepare() { # Setup go directory mkdir -p gopath/src/github.com/dokku ln -rTsf "${srcdir}/${pkgname}-${pkgver}" "gopath/src/github.com/dokku/${pkgname}" export GOPATH="${srcdir}/gopath" # Get go dependencies go get github.com/ryanuber/columnize } package() { export GOPATH="${srcdir}/gopath" cd "${srcdir}/${pkgname}-${pkgver}" # Install executable install -Dm755 dokku "${pkgdir}/usr/bin/dokku" # Add .core and build go plugins for plugin in plugins/*; do if [ -e "${plugin}/Makefile" ]; then make -C "${plugin}" build; fi touch .core done # Clean go plugins for plugin in plugins/*; do if [ -e "${plugin}/Makefile" ]; then make -C "${plugin}" src-clean; fi done # Move all files in place mkdir -p "${pkgdir}/var/lib/dokku/core-plugins/available" cp -r plugins/* "${pkgdir}/var/lib/dokku/core-plugins/available" # Version echo $pkgver > "${pkgdir}/var/lib/dokku/VERSION" }