blob: f661a589471086e4dbb3ea092c853627fc08858b (
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
39
40
41
42
43
44
45
46
47
48
|
pkgname=dokku
pkgver=0.12.12
pkgrel=1
pkgdesc="Docker powered mini-Heroku in around 100 lines of Bash."
arch=(any)
url="https://github.com/dokku/dokku"
license=(MIT)
makedepends=(
'go'
'plugn'
)
depends=(
'bind-tools'
'docker'
'gliderlabs-sigil'
'go'
'herokuish>=0.4.3'
'lsb-release'
'nginx'
'openbsd-netcat'
'plugn>=0.3.0'
'python'
'sshcommand>=0.7.0'
)
source=(
"https://github.com/dokku/dokku/archive/v${pkgver}.zip"
"${pkgname}.install"
)
sha256sums=('d48c3b9397c46efbc8cf92de63f4f7f01cc82bfde6d01779057b940475e90677'
'09e37fa26884952040f332f5386ce55d803856e0d0f8a42afd4684ade96db8ca')
install=${pkgname}.install
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 dokku "${pkgdir}/usr/bin/dokku"
go get github.com/ryanuber/columnize
go get github.com/dokku/dokku/plugins/config
env PLUGIN_MAKE_TARGET=build make go-build
cp common.mk "${pkgdir}/var/lib/dokku/core-plugins/common.mk"
cp -r plugins/* "${pkgdir}/var/lib/dokku/core-plugins/available"
find plugins/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | while read plugin; do cd "${pkgdir}/var/lib/dokku/core-plugins/available/${plugin}" && if [ -e Makefile ]; then make src-clean; fi; done
find plugins/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | while read plugin; do touch "${pkgdir}/var/lib/dokku/core-plugins/available/${plugin}/.core"; done
rm "${pkgdir}/var/lib/dokku/core-plugins/common.mk"
git describe --tags > "${pkgdir}/var/lib/dokku/VERSION"
cat "${pkgdir}/var/lib/dokku/VERSION" | cut -d '-' -f 1 | cut -d 'v' -f 2 > "${pkgdir}/var/lib/dokku/STABLE_VERSION"
}
|