Add serialchat
This commit is contained in:
parent
333d10608a
commit
8a1d8c0e6f
2 changed files with 43 additions and 0 deletions
13
serialchat-git/.SRCINFO
Normal file
13
serialchat-git/.SRCINFO
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
pkgbase = serialchat-git
|
||||||
|
pkgdesc = A Matrix Serial client to you!
|
||||||
|
pkgver = r3.333d106
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://git.serialexperiments.club/lain/SerialChat
|
||||||
|
arch = any
|
||||||
|
license = MIT
|
||||||
|
makedepends = git
|
||||||
|
makedepends = npm
|
||||||
|
source = serialchat-git::git+ssh://git@git.serialexperiments.club/lain/serialchat.git
|
||||||
|
sha256sums = SKIP
|
||||||
|
|
||||||
|
pkgname = serialchat-git
|
30
serialchat-git/PKGBUILD
Normal file
30
serialchat-git/PKGBUILD
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# 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"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue