blob: 689ba41ba6ca9df1b525b89b5eba43b151271d72 (
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: Vladyslav Aviedov <vladaviedov at protonmail dot com>
# Contributor: Jacob Still <jacobcstill at gmail dot com>
pkgname=focalboard-server
pkgver=7.11.3
pkgrel=1
epoch=
pkgdesc="Focalboard is an open source, self-hosted alternative to Trello, Notion, and Asana."
arch=('i686' 'x86_64')
url="https://www.focalboard.com/"
license=('MIT')
groups=()
depends=()
makedepends=('go' 'nodejs>=10.0' 'npm' 'git')
checkdepends=()
optdepends=('nginx: reverse proxy server, recommended')
provides=('focalboard-server')
conflicts=('focalboard-server')
replaces=()
backup=()
options=()
install=focalboard.install
changelog=
source=("${pkgname}::git+https://github.com/mattermost/focalboard.git#tag=v${pkgver}"
'focalboard.service')
noextract=()
sha256sums=('SKIP'
'607d16cb2544101d0e4291e7804c3137b90b620107a37431c0f3d71e93c4fcd5')
validpgpkeys=()
build() {
cd "${srcdir}/${pkgname}"
LDFLAGS=''
make prebuild
make server-linux webapp
}
package() {
cd "${srcdir}/${pkgname}"
PACKAGE_FOLDER="$pkgdir/opt/focalboard/"
mkdir -p "${PACKAGE_FOLDER}" "${PACKAGE_FOLDER}/bin" "${PACKAGE_FOLDER}/pack" "${PACKAGE_FOLDER}/license"
# Copy focalboard build
cp bin/linux/focalboard-server "${PACKAGE_FOLDER}/bin"
cp -r webapp/pack/* "${PACKAGE_FOLDER}/pack"
cp config.json "${PACKAGE_FOLDER}"
cp NOTICE.txt "${PACKAGE_FOLDER}/license"
cp webapp/NOTICE.txt "${PACKAGE_FOLDER}/license/webapp-NOTICE"
# Systemd Service
mkdir -p "${pkgdir}/usr/lib/systemd/system/"
cp "${srcdir}/focalboard.service" "${pkgdir}/usr/lib/systemd/system/focalboard.service"
}
|