summaryrefslogtreecommitdiff
path: root/community/libretro-craft/APKBUILD
blob: 3f39256517d3b5461db52f0869b3bf400d81ed91 (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
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-craft
pkgver=0_git20230109
pkgrel=1
_commit="fce88570e83003b24cce34085928c890adae141d"
pkgdesc="a simple Minecraft clone written in C using modern OpenGL"
url="https://github.com/libretro/Craft"
arch="all"
license="MIT"
makedepends="mesa-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/Craft/archive/$_commit.tar.gz"
builddir="$srcdir/Craft-$_commit"
options="!check" # No tests

build() {
	# Enable POSIX features with -D_DEFAULT_SOURCE
	export CFLAGS="$CFLAGS -D_DEFAULT_SOURCE"
	make -f Makefile.libretro
}

package() {
	install -Dm644 craft_libretro.so "$pkgdir"/usr/lib/libretro/craft_libretro.so
}

sha512sums="
59711160dad973c509310f1b85a650336fe6ec7d0b86136adf1dbfcdc0f8e086442dac1e37b11b3172de204e09b031d08ef0fc956967c9fc1ab94c6afd4249d3  libretro-craft-fce88570e83003b24cce34085928c890adae141d.tar.gz
"