blob: 7c949c5f4a71e5e33b3ce263c2e339dce9fa017c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Kimiblock Moe
pkgname=thirdroom-git
pkgver=r2923.01bc731b
pkgrel=1
pkgdesc="Open, decentralised, immersive worlds built on Matrix"
arch=('any')
url="https://github.com/matrix-org/thirdroom"
license=('Apache-2.0')
depends=()
makedepends=("git" "yarn")
provides=("thirdroom")
source=('git+https://github.com/matrix-org/thirdroom.git')
sha256sums=('SKIP')
conflicts=("thirdroom")
function prepare() {
cd thirdroom
yarn install
}
function pkgver(){
cd thirdroom
#git describe --long --tags --abbrev=8 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
function build(){
cd thirdroom
yarn run build
}
function package(){
mkdir -p "${pkgdir}/usr/share"
cp -r "${srcdir}/thirdroom/dist" "${pkgdir}/usr/share/thirdroom"
chmod -R 755 "${pkgdir}/usr/share/thirdroom"
}
|