# Maintainer: Erich Eckner # Contributor: _pkgbase=WolkenWelten _pkgname=${_pkgbase,,} pkgname=${_pkgname}-git pkgver=r2022.bc445319 pkgrel=6 pkgdesc='Gamemix between Minecraft, Quake ]I[ and Emacs in C99' arch=('i686' 'pentium4' 'x86_64' 'aarch64') url="https://wolkenwelten.net/" license=('GNU') _pinned_dependencies=( 'glibc>=2.38' 'libGL.so=1' 'libvorbis.so=0' 'sdl2=2.30.0' ) depends=('ffmpeg' 'sdl2' 'sdl2_mixer' "${_pinned_dependencies[@]}") makedepends=('clang' 'git' 'nasm') conflicts=("${_pkgname}") provides=("${_pkgname}") source=(${_pkgname}::"git+https://git.sr.ht/~melchizedek6809/${_pkgbase}") md5sums=('SKIP') pkgver() { cd ${_pkgname} printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd ${_pkgname} git submodule update --init --recursive } build() { cd ${_pkgname} make } package() { cd ${_pkgname} install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" install -Dm755 "${_pkgname}-server" "${pkgdir}/usr/bin/${_pkgname}-server" install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" }