blob: e49b6f500b9d22c6741c9a541fa87b70052675ff (
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
|
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
pkgname=lightspeed-react-git
pkgver=r31.f396a1a
pkgrel=1
pkgdesc="React frontend for the Lightspeed project"
arch=(any)
url="https://github.com/GRVYDEV/Lightspeed-react"
license=("custom:MIT")
optdepends=("nginx: Web Server to host the static web app")
makedepends=("npm" "git")
provides=("lightspeed-react" "lightspeed-frontend")
conflicts=("lightspeed-react" "lightspeed-frontend")
backup=("etc/webapps/lightspeed-react/config.json")
source=("${pkgname}::git+https://github.com/GRVYDEV/Lightspeed-react.git")
sha512sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
npm install --cache "${srcdir}/npm-cache"
}
build() {
cd "$pkgname"
npm run build
}
package() {
cd "$pkgname"
install -d "${pkgdir}/usr/share/webapps/lightspeed-react"
cp -r "build/." "${pkgdir}/usr/share/webapps/lightspeed-react"
install -Dm644 "build/config.json" "${pkgdir}/etc/webapps/lightspeed-react/config.json"
ln -sf "/etc/webapps/lightspeed-react/config.json" "${pkgdir}/usr/share/webapps/lightspeed-react/config.json"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/lightspeed-react/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|