blob: a91b1d1e961f410a2c07909a4ac37c6eaf48f10c (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Maintainer: flumpsi <flumpsi@outlook.com>
# NOTE! This package is compiled without a -j flag, since some users might prefer to set it on their own.
# If you would like to set the -j flag, please edit the PKGBUILD or use MAKEFLAGS e.g: MAKEFLAGS="-j$(nproc)"
pkgname=hackmatrix-git
pkgrel=1
pkgdesc="HackMatrix is a 3D Linux desktop environment (which can also be a game engine)"
pkgver=r1123.1.stable.r296.ge38a2aa
arch=('x86_64')
url="https://github.com/collinalexbell/HackMatrix"
license=('MIT')
provides=("hackmatrix")
conflicts=(
"hackmatrix"
"hackmatrix-bin"
)
depends=(
'wayland'
'xorg-server'
'xorg-xinit'
'libx11'
'libxcomposite'
'libxtst'
'libxext'
'libxfixes'
'mesa'
'glfw-x11'
'xdotool'
'xorg-xrandr'
'xorg-xwininfo'
'sqlite'
'zeromq'
'assimp'
'fmt'
'spdlog'
'wlroots0.19'
'asio'
)
makedepends=(
'base-devel'
'cmake'
'git'
'wayland-protocols'
'protobuf'
)
pkgver() {
cd "$srcdir/HackMatrix"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//')"
}
source=(
"HackMatrix::git+https://github.com/collinalexbell/HackMatrix.git"
"wlroots-fix.patch"
"HackMatrix.desktop"
"matrix-script"
)
sha256sums=(
'SKIP'
'd28e18337c55bb5cfd5f6f8f6178e2da2fa1c08ffa50d037efdacf0cb7476ed7'
'db55d2c5e3d828f867d3c5a43e5b95519a0dfcb4ca669c40d467f4395e3ec6e4'
'6281237d97263d6e575d9ca9833687b4463cece257838676e1fc7b1db3a555a8'
)
prepare() {
cd "$srcdir/HackMatrix"
echo "Syncing submodules"
git submodule update --init --recursive
echo "Applying wlroots patch"
patch -p0 < "$srcdir/wlroots-fix.patch"
}
build() {
cd "$srcdir/HackMatrix"
mkdir -pv build
cd build
cmake ..
cmake --build .
}
package() {
cd "$srcdir/HackMatrix"
echo "Installing HackMatrix binaries"
install -Dm755 "$srcdir/matrix-script" "$pkgdir/usr/bin/hackmatrix"
install -Dm755 build/matrix "$pkgdir/usr/share/HackMatrix/hackmatrix-binary"
install -Dm755 "$srcdir/HackMatrix.desktop" "$pkgdir/usr/share/applications/HackMatrix.desktop"
install -Dm644 config.yaml "$pkgdir/usr/share/HackMatrix/config.yaml"
install -d "$pkgdir/usr/share/HackMatrix"
cp -rv vox shaders scripts db "$pkgdir/usr/share/HackMatrix/"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|