# Maintainer: VVL pkgname=shlink-web-client pkgver=4.1.2 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=("https://github.com/shlinkio/shlink-web-client/archive/refs/tags/v${pkgver}.tar.gz") sha512sums=('cb0678c41db582634f8c6fc4045895ff77856217948af985d59c65076793de717d5fb6fb444427982c78243fc936aadf2436468f8c20b8d3a64bf5f87b52275f') 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/ }