blob: f0fc4887d0d5910295335b48cf6aee532e6767cc (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Maintainer: Fabien LEFEBVRE <contact@d1ceward.com>
pkgname=dokku
pkgver=0.35.15
pkgrel=1
pkgdesc='Docker-powered PaaS that helps build and manage the lifecycle of applications'
arch=('x86_64')
url='https://github.com/dokku/dokku'
license=('MIT')
depends=(
'bash-completion'
'bind'
'cpio'
'curl'
'docker'
'docker-compose'
'docker-container-healthchecker'
'docker-image-labeler'
'dos2unix'
'git'
'go'
'gliderlabs-sigil'
'herokuish'
'inetutils'
'jq'
'man-db'
'netrc'
'net-tools'
'nginx'
'openbsd-netcat'
'parallel'
'plugn'
'procfile-util'
'rsync'
'rsyslog'
'sudo'
'sshcommand'
'unzip'
)
source=("${url}/archive/v${pkgver}.zip"
"${pkgname}.install"
"scheduler-docker-local.patch")
sha256sums=('24601828ff00a00520813e642322ba11408b6fb4085e267106769ae237413438'
'8830ca7b44118da8e2f35aca271429cfa93e7f21126df6696a0d0d608d979f2b'
'fd979a3d612396316603f7677cdcdb7d25c7fecf99c97a8d1458262684913fdd')
install="${pkgname}.install"
build() {
export GOPATH="${srcdir}/gopath"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd "${pkgname}-${pkgver}"
# Fix privilege issue with crontab -u
patch -p1 -i "${srcdir}/scheduler-docker-local.patch"
# Add .core and build go plugins
for plugin in plugins/*; do
if [ -e "${plugin}/Makefile" ]; then make -C $plugin build; fi
touch "${plugin}/.core"
done
# Clean go plugins
for plugin in plugins/*; do
if [ -e "${plugin}/Makefile" ]; then make -C $plugin src-clean; fi
done
}
package() {
cd "${srcdir}"
# Install executable and license
install -Dm755 "${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Move all files in place
mkdir -p "${pkgdir}/var/lib/dokku/core-plugins/available"
cp -R "${pkgname}-${pkgver}/plugins/." "${pkgdir}/var/lib/dokku/core-plugins/available"
# Version
echo $pkgver > "${pkgdir}/var/lib/dokku/VERSION"
}
|