blob: 2974c81449070fff263f225096ca8490a88c5d8d (
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
|
# Maintainer: Your Name <benjamin.voisin@ens-rennes.fr>
pkgname=belenios
pkgver=2.5
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="https://www.belenios.org/releases/belenios-$pkgver.tar.gz"
license=('GPL')
groups=()
depends=('ocaml' 'opam' 'npm' 'nodejs')
makedepends=('dune' 'git' 'gmp' 'libsodium' 'pkg-config' 'm4' 'sqlite3' 'openssl' 'curl' 'zip' 'unzip' 'ncurses' 'gd' 'cracklib' 'jq' 'sed')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
validpgpkeys=('58EB0999C64E897EE894B8037853DA4D49881AD3')
source=(
"git+${pkgname}-$pkgver.tar.gz::https://www.belenios.org/releases/belenios-$pkgver.tar.gz"
"git+${pkgname}-$pkgver.tar.gz.sig::https://www.belenios.org/releases/belenios-$pkgver.tar.gz.sig"
)
sha256sums=('SKIP' 'SKIP')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
opam init -n > /dev/null
if (( $(opam switch list | grep "$pkgname" -c) == "0" )); then
echo "Creating the $pkgname switch"
opam switch create $pkgname --empty > /dev/null
fi
eval $(opam env --switch=$pkgname --set-switch)
opam switch set-invariant ocaml-base-compiler=4.14.1 > /dev/null
opam install --yes base64 hex dune atdgen zarith cryptokit calendar cmdliner sqlite3 csv ocsipersist-sqlite eliom gettext-camomile ocamlnet
}
build() {
cd "$srcdir/$pkgname-$pkgver"
make
sed -i "s/nodejs/node/g" frontend/Makefile
make build-release-server
}
package() {
cd "$srcdir/$pkgname-$pkgver"
cp -r _run/usr $pkgdir/
}
check() {
cd "$srcdir/$pkgname-$pkgver"
make check
}
|