blob: de7b1dac83a9a7119048fbea6b2228391373f290 (
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
|
# Maintainer: Einar Arnason einsiarna@gmail.com
ORG_NAME=jsreport
REPO_NAME=jsreport
LATEST_INFO="$(curl -s https://api.github.com/repos/${ORG_NAME}/${REPO_NAME}/releases/latest)"
TAG=$(echo "$LATEST_INFO" | grep "tag_name" | cut -d'"' -f4)
pkgname=$REPO_NAME-bin
pkgver="${TAG//v/}"
pkgrel=1
pkgdesc="An open-source platform for designing and rendering various reports."
arch=("any")
url="https://github.com/$ORG_NAME/$REPO_NAME"
license=("GNU")
backup=()
provides=("$REPO_NAME" "$REPO_NAME-bin")
conflicts=("$REPO_NAME" "$REPO_NAME-git")
source=(
"https://github.com/$REPO_NAME/$REPO_NAME/releases/download/$TAG/jsreport-linux.tar.gz"
"$REPO_NAME.service"
"$REPO_NAME.config.json"
)
sha256sums=(
"SKIP"
"SKIP"
"SKIP"
)
depends=(nodejs)
makedepends=(yarn npm nodejs git)
optdepends=(phantomjs)
install=$REPO_NAME.install
options=(!strip)
pkgver() {
echo "${TAG//v/}"
}
package() {
install -d "${pkgdir}/etc/$REPO_NAME"
install -d "${pkgdir}/usr/bin"
install -Dm 755 "$srcdir/$REPO_NAME" "$pkgdir/opt/$REPO_NAME/$REPO_NAME"
install -Dm 644 "$srcdir/$REPO_NAME.service" "$pkgdir/usr/lib/systemd/system/$REPO_NAME.service"
install -Dm 644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$REPO_NAME/LICENSE"
install -Dm 644 "$srcdir/$REPO_NAME.config.json" "$pkgdir/opt/$REPO_NAME/$REPO_NAME.config.json"
ln -s "/opt/$REPO_NAME/$REPO_NAME" "$pkgdir/usr/bin/$REPO_NAME"
ln -s "/opt/$REPO_NAME/$REPO_NAME.config.json" "$pkgdir/etc/$REPO_NAME/$REPO_NAME.config.json"
}
|