blob: a22b491d596c63110c65f2d4f19e9dc2bb8d9b13 (
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
|
# Maintainer: Chimmie Firefly <gameplayer2019pl (at) tutamail (dot) com>
pkgname=cubic-server-git
_pkgname=cubic-server-git
pkgver=r1442.efa5d7d4
pkgrel=1
pkgdesc='A fast and extensible C++ implementation of Minecraft is server.'
arch=(
'i686'
'x86_64'
'armv7h'
'aarch64'
'riscv64'
)
url="https://cubic-mc.com"
license=('GPL3')
depends=(
'openssl'
)
makedepends=(
'git'
'coreutils'
'cmake'
'make'
'python'
'pkgconf'
'gcc'
'python-virtualenv'
'clang'
'gtkmm3'
)
provides=(
'cubic-server'
)
conflicts=(
'cubic-server'
)
source=(
"${pkgname}::git+https://github.com/CubicMC/cubic-server"
)
b2sums=(
'SKIP'
)
pkgver() {
cd "${srcdir}/${pkgname}"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
rm -rf build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make
}
package() {
cd "${srcdir}/${pkgname}/build"
mkdir -p "${pkgdir}"/usr/bin
mkdir -p "${pkgdir}"/usr/share/cubic-server
cp -rv ./*.json "${pkgdir}/usr/share/cubic-server/"
cp -rv ./*.gz "${pkgdir}/usr/share/cubic-server/"
cp -rv CubicServer "${pkgdir}"/usr/bin/cubic-server
make install DESTDIR="${pkgdir}"
}
|