blob: b36a8b3be4383e0a5ff660878b6eac3a0f49a948 (
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
|
# Maintainer: Mekyt <hello at mek dot yt>
pkgname='appflowy-cloud'
pkgver=0.2.15
pkgrel=1
pkgdesc='Note, project and knowledge management'
arch=('x86_64')
url='https://github.com/AppFlowy-IO/AppFlowy-Cloud'
license=('AGPL-3.0-only')
depends=('glibc' 'gcc-libs' 'sqlx-cli')
makedepends=('cargo')
optdepends=(
'gotrue: Authentication'
'minio: MinIO support'
'postgresql: PostgreSQL support'
'redis: Redis support'
)
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/AppFlowy-IO/AppFlowy-Cloud/archive/refs/tags/${pkgver}.tar.gz"
'appflowy-cloud.service'
'appflowy-cloud@.service'
'appflowy.sysusers'
)
b2sums=(
'670fd0ec79f0f00a019c39da6751c0db241ee5f558fa4a0fc0f015f58bcba3d682c83678a325d7edcf4274a98e09e1bb5981405bb29329585c64ffdbfefb6e6f'
'8255a2305e058e9326e1b37b63d43b2da9a49339f5379d052cea5667df0a012da26823a4b71dd6da5f53791a2e4d3e86319ceb605d7e4c5358f72cc28a43c673'
'4153a806bbd9633c7975083215c60616d67d2028ae0faa5db701b70769c4776542a368ea308c3ed51b970c2273dae2a61daada78984084cf5381a9820c9aeb5a'
'e57e1b59e78c97f35d5c6d72dd2b3b343e0955c4983d93c26ecaeab44a7bdea6d202bd36c666f77061b5381f26727e5fcd0d08e47441907b767219d9dc4f2afe'
)
options=(!lto)
backup=('etc/appflowy/config.env')
build() {
cd "AppFlowy-Cloud-${pkgver}"
export SQLX_OFFLINE=true
cargo sqlx prepare --check
cargo build --release
}
package() {
install -Dm 644 appflowy-cloud.service -t "${pkgdir}/usr/lib/systemd/system/"
install -Dm 644 appflowy-cloud@.service -t "${pkgdir}/usr/lib/systemd/system/"
install -Dm 644 appflowy.sysusers "${pkgdir}/usr/lib/sysusers.d/appflowy.conf"
cd "AppFlowy-Cloud-${pkgver}"
install -Dm 755 "target/release/appflowy_cloud" "${pkgdir}/usr/bin/${pkgname}"
install -Dm 644 dev.env "${pkgdir}/etc/appflowy/config.env"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -dDm 644 migrations "${pkgdir}/usr/share/${pkgname}/migrations"
}
|