blob: 089c4bebffd02902b668ba3f269f3a261ac59714 (
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
|
# Maintainer: PQCraft <0456523@gmail.com>
pkgname=cavecube
pkgver=0.6.0
pkgrel=1
pkgdesc="An in-development Minecraft/Infiniminer clone"
arch=(x86_64 i686 pentium4 arm armv6h armv7h aarch64)
url="https://github.com/PQCraft/CaveCube"
license=(Boost)
depends=(glibc)
makedepends=(make glibc glfw)
conflicts=(cavecube-bin cavecube-sdl2 cavecube-sdl2-bin)
source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::https://github.com/PQCraft/CaveCube/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('SKIP')
build() {
cd "${srcdir}/CaveCube-${pkgver}/"
make NATIVE=y -j$(nproc)
}
check() {
cd "${srcdir}/CaveCube-${pkgver}/"
[ -f ./cavecube ]
}
package() {
cd "${srcdir}/CaveCube-${pkgver}/"
find cavecube extras/ resources/ -not -path "extras/icon/*" -type f -exec install -Dm 755 "{}" "${pkgdir}/opt/CaveCube/{}" \;
cd extras/icon/
find hicolor/ -type f -exec install -Dm 755 "{}" "${pkgdir}/usr/share/icons/{}" \;
cd ../../
mkdir -p "${pkgdir}/usr/bin/"
ln -sf "/opt/CaveCube/cavecube" "${pkgdir}/usr/bin/cavecube"
mkdir -p "${pkgdir}/usr/share/applications/"
ln -sf "/opt/CaveCube/extras/cavecube.desktop" "${pkgdir}/usr/share/applications/cavecube.desktop"
}
|