30 lines
765 B
Bash
30 lines
765 B
Bash
# Maintainer: Lain Iwakura <lain@serialexperiments.club>
|
|
|
|
pkgname="serialchat-git"
|
|
pkgver=r3.333d106
|
|
pkgrel=1
|
|
pkgdesc="A Matrix Serial client to you!"
|
|
arch=('any')
|
|
url="https://git.serialexperiments.club/lain/SerialChat"
|
|
license=('MIT')
|
|
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"
|
|
}
|