custom-pkgbuilds/serialchat-git/PKGBUILD

30 lines
779 B
Bash

# Maintainer: Lain Iwakura <lain@serialexperiments.club>
pkgname="serialchat-git"
pkgver=r4.8a1d8c0
pkgrel=1
pkgdesc="A Matrix Serial client to you!"
arch=('any')
url="https://git.serialexperiments.club/lain/SerialChat"
license=('AGPL-3.0-or-later')
makedepends=('git' 'npm')
source=("${pkgname}::git+ssh://git@git.serialexperiments.club/lain/serialchat.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
npm install --legacy-peer-deps
npm run build
}
package() {
cd "$srcdir/$pkgname"
install -d "$pkgdir/usr/share/webapps/serialchat"
cp -r dist/* "$pkgdir/usr/share/webapps/serialchat"
chmod -R 0755 "$pkgdir/usr/share/webapps/serialchat"
}