blob: 4d670a826ec1d10accef94ed96487764ec9b4a2d (
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
87
88
89
90
91
92
|
# Maintainer: Fabien LEFEBVRE <contact@d1ceward.com>
pkgname=dokku
pkgver=0.27.3
pkgrel=1
pkgdesc='Docker-powered PaaS that helps build and manage the lifecycle of applications'
arch=('any')
url='https://github.com/dokku/dokku'
license=('MIT')
depends=(
'bash-completion'
'cpio'
'curl'
'docker'
'docker-image-labeler'
'dos2unix'
'git'
'go'
'gliderlabs-sigil'
'herokuish'
'jq'
'man-db'
'netrc'
'nginx'
'openbsd-netcat'
'parallel'
'plugn'
'procfile-util'
'rsync'
'rsyslog'
'sudo'
'sshcommand'
'unzip'
)
source=("${url}/archive/v${pkgver}.zip"
"${pkgname}.install"
"crontab_calls.patch"
"systemd_calls.patch"
"hostname"
"LICENSE")
sha256sums=('0bd7180f92c15bf302cec8a618538a6cabeb97b2ddd2e6299f7dd5a575aeeeb0'
'5b3e99b6be28f8c68e024d9127992bcd49c758566a6ecaa15f9788a411eab0f0'
'dda85c90106e68b5478679fb2a5b8b37a786d188703abd255e079bdada36a9c0'
'c600fefea1c93e9f94192741adc679fb0a05674775d3677954f10db4e09205c6'
'3f4223dec09dde4148e0b6f4e9474ec3d2a9064bf070d637967324e103615ba6'
'b1ac2fed5ac269fb7bbf651a3d37ef5fd56d2c33320e17cb6e23a22a93f5c046')
conflicts=('inetutils')
install="${pkgname}.install"
build() {
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"
export GOPATH="${srcdir}/gopath"
cd "${pkgname}-${pkgver}"
# Fix issue on crontab calls with arch linux cron implementation
patch -p1 -i "${srcdir}/crontab_calls.patch"
# Fix issue with invalid service manager call for arch linux
patch -p1 -i "${srcdir}/systemd_calls.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 -Dm755 hostname "${pkgdir}/usr/bin/hostname"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Move all files in place
mkdir -p "${pkgdir}/var/lib/dokku/core-plugins/available"
cp -R "${srcdir}/${pkgname}-${pkgver}/plugins/." "${pkgdir}/var/lib/dokku/core-plugins/available"
# Version
echo $pkgver > "${pkgdir}/var/lib/dokku/VERSION"
}
|