diff --git a/serialchat-git/.SRCINFO b/serialchat-git/.SRCINFO new file mode 100644 index 0000000..49edeb6 --- /dev/null +++ b/serialchat-git/.SRCINFO @@ -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 diff --git a/serialchat-git/PKGBUILD b/serialchat-git/PKGBUILD new file mode 100644 index 0000000..c8280e5 --- /dev/null +++ b/serialchat-git/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Lain Iwakura + +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" +}