blob: 83c4f3ddc92bc59effde3e439f36906e9c900942 (
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
|
# Maintainer: Vladislav Minakov <v@minakov.pro>
pkgname=shlink-web-client
pkgver=4.3.0
pkgrel=1
pkgdesc="A ReactJS-based progressive web application for Shlink"
arch=('any')
url="https://github.com/shlinkio/shlink-web-client"
optdepends=('nginx: reverse-proxy')
makedepends=('nodejs' 'npm')
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::https://github.com/shlinkio/shlink-web-client/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('9686c7ec9b2dec5add5bcd2d7250415389bffb6ee3cfdbd5fcf9cd8a29af818c5a72c0dcb5bca0b576719400e751d6a75e15c5c74078191204d2c2cdad825a2b')
build() {
cd "$pkgname-$pkgver"
# if you need to change homepage location:
# sed -i 's,"homepage": "","homepage": "/shlink",g' package.json
npm install
npm run build
}
package() {
install -d "${pkgdir}/usr/share/webapps/shlink-web-client/"
cp -r ${srcdir}/$pkgname-$pkgver/build/* ${pkgdir}/usr/share/webapps/shlink-web-client/
}
|