don't do git clone manually

This commit is contained in:
VitalyR 2023-10-14 23:56:24 +08:00
parent a6fd989c12
commit 80cc115100
2 changed files with 7 additions and 15 deletions

View file

@ -1,6 +1,6 @@
pkgbase = godot-git pkgbase = godot-git
pkgdesc = Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine. pkgdesc = Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine.
pkgver = 4.1.r1.4a20869 pkgver = 4.2.r58201.a574c0296b
pkgrel = 1 pkgrel = 1
url = http://www.godotengine.org url = http://www.godotengine.org
arch = i686 arch = i686
@ -24,8 +24,10 @@ pkgbase = godot-git
optdepends = libspeechd: Text-to-Speech Support optdepends = libspeechd: Text-to-Speech Support
provides = godot provides = godot
conflicts = godot conflicts = godot
source = godot::git+https://github.com/godotengine/godot.git
source = godot.desktop source = godot.desktop
source = icon.png source = icon.png
sha256sums = SKIP
sha256sums = 2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a sha256sums = 2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a
sha256sums = 99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1 sha256sums = 99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1

View file

@ -1,4 +1,4 @@
# Maintainer: vitalyr <vr@vitalyr.com> # Maintainer: VitalyR <vr@vitalyr.com>
# Maintainer: tas <tasgon_@out/look.com> # Maintainer: tas <tasgon_@out/look.com>
# Maintainer: QuantMint <qua/ntmint@/protonm/ail.com> # Maintainer: QuantMint <qua/ntmint@/protonm/ail.com>
# Contributor: Daniel Segesdi <sege/sdi.d/ani@/gma/il.com> # Contributor: Daniel Segesdi <sege/sdi.d/ani@/gma/il.com>
@ -7,7 +7,7 @@
_pkgname=godot _pkgname=godot
pkgname=${_pkgname}-git pkgname=${_pkgname}-git
pkgver=4.1.r1.4a20869 pkgver=4.2.r58201.a574c0296b
pkgrel=1 pkgrel=1
pkgdesc="Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine." pkgdesc="Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine."
url="http://www.godotengine.org" url="http://www.godotengine.org"
@ -26,26 +26,16 @@ else
fi fi
source=( source=(
"${_pkgname}::git+https://github.com/godotengine/godot.git"
godot.desktop godot.desktop
icon.png icon.png
) )
sha256sums=( sha256sums=(
'SKIP'
'2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a' '2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a'
'99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1' '99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1'
) )
prepare() {
if [ ! -d "${srcdir}/${_pkgname}" ]
then
cd ${srcdir}
git clone https://github.com/godotengine/godot.git --branch master --single-branch --depth 1
else
cd "${srcdir}/${_pkgname}"
git fetch --depth 1 origin master
git reset --hard origin/master
fi
}
pkgver() { pkgver() {
cd "${srcdir}/${_pkgname}" cd "${srcdir}/${_pkgname}"
_major=$(cat version.py|grep "major" | sed 's/major = //') _major=$(cat version.py|grep "major" | sed 's/major = //')