blob: 893628052da2296de72a68c709ccf9093e883b72 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: LunarEclipse <luna@lunareclipse.zone>
export GIT_LFS_SKIP_SMUDGE=1
pkgname=veloren-git
pkgver=0.16.0.r410.g5ec99290f2
pkgrel=1
pkgdesc="The development version of an open-world, open-source multiplayer voxel RPG"
arch=('x86_64' 'i686')
url='https://gitlab.com/veloren/veloren'
license=('GPL3')
options=('!strip') # This makes debugging issues easier sometimes, comment out if small package size is needed
depends=('alsa-lib' 'glslang' 'libxkbcommon-x11' 'vulkan-icd-loader')
optdepends=(
'pulseaudio-alsa: audio support on pulseaudio'
'pipewire-alsa: audio support on pipewire'
)
makedepends=('atk' 'cmake' 'cairo' 'gdk-pixbuf2' 'git' 'git-lfs' 'openssl' 'pango' 'python' 'rustup' 'udev')
provides=('veloren')
conflicts=('veloren')
_repo='https://gitlab.com/veloren/veloren.git'
source=("$pkgname"::"git+$_repo")
noextract=()
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags --exclude='*[a-z][a-z]*' | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
unset GIT_LFS_SKIP_SMUDGE
cd "$srcdir/$pkgname"
git remote set-url origin "$_repo"
git lfs install
git lfs fetch
git lfs checkout
}
build() {
cd "$srcdir/$pkgname"
export VELOREN_USERDATA_STRATEGY='system'
cargo build --release --bin veloren-voxygen --no-default-features --features="default-publish"
cargo build --release --bin veloren-server-cli
}
package() {
install -D "$srcdir/$pkgname/target/release/veloren-voxygen" -t "$pkgdir/usr/bin"
install -D "$srcdir/$pkgname/target/release/veloren-server-cli" -t "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/veloren"
cp -a "$srcdir/$pkgname/assets" "$pkgdir/usr/share/veloren/"
install -Dm 644 "$srcdir/$pkgname/assets/voxygen/net.veloren.veloren.desktop" -t "$pkgdir/usr/share/applications"
install -Dm 644 "$srcdir/$pkgname/assets/voxygen/net.veloren.veloren.png" -t "$pkgdir/usr/share/pixmaps/"
install -Dm 644 "$srcdir/$pkgname/assets/voxygen/net.veloren.veloren.metainfo.xml" -t "$pkgdir/usr/share/metainfo"
}
|