blob: 6647467ec6d5a364b0fd7377a8ada27e248c8e18 (
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
|
# Maintainer: MrBlumi
# Contributor: Giovanni Bottaro <aur@mybotti.eu>
pkgname=('ocis')
pkgver=7.0.0
pkgrel=1
pkgdesc="A file sync & share platform designed to scale"
arch=('aarch64' 'x86_64')
url="https://github.com/owncloud/ocis"
license=('APACHE')
depends=('glibc')
makedepends=('go' 'pnpm')
backup=('etc/ocis.env')
source=("$pkgname-$pkgver.tar.gz::https://github.com/owncloud/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
"go.mk.patch"
"Makefile.patch"
"ocis.env"
"ocis.service"
"ocis.sysusers"
"ocis.tmpfiles")
sha512sums=('3765fb970c1828e1083d9c0be9ad09e60f2ea7911b7e6c914e6d0625524fae1d75c72eaaae25aa7da4df879fe34d9cdbd84607ffb2a0ab668ea6dbb895e34373'
'da70b77bf25c87d75f1a662d00a339f9b8756e6f8e33e17dcc0663d2dcd7d4981720a93fe1ba6c788d8a5e7f484f8e292e59273793106d496955c5a670862318'
'4323568df0101385a068ff867df58b178a8ead63ac6fd7fe601027809b07786da996f95477de6b8ce0d5f635fcc930fde34b948d86e40026e7130e0f19d3b0c9'
'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e'
'bf3a07a265bcaa9e651fa73721af9fe23c1ae02aefb734de11739521838210b60f3388a00f1c25b7fc99b9408148183c62dca1c53ec03dad4bf0c82a1039009e'
'a205aeaf1136696c5613560a12fa253f050b4944f1fbf2be6ef47e660ffc110a7e9226aa631670487dde66c61556b1147af48427a4831d6a7bbf9333c4b9b1c7'
'bfe32b2f19afd84bf6d3048ca9aadba758372bf8ec0b73cf6abdcd2e4dfe059c8e84a9db1cc7c0d1a5a88742f2c4445e268abcbc55a479670842cfd945c8d096')
install="ocis.install"
prepare() {
cd "${pkgname}-${pkgver}"
patch .make/go.mk ${srcdir}/go.mk.patch
patch services/web/Makefile ${srcdir}/Makefile.patch
}
build() {
cd "${pkgname}-${pkgver}/${pkgname}"
export DRONE_TAG="${pkgver}"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
make ci-node-generate
make ci-go-generate build
}
package() {
install -vDm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -vdm755 "${pkgdir}/etc/${pkgname}"
install -vDm750 "${srcdir}/${pkgname}.env" -t "${pkgdir}/etc"
install -vDm644 "${srcdir}/${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system"
install -vDm644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -vDm644 "${srcdir}/${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
}
|