various changes
This commit is contained in:
parent
8363fa9059
commit
ceba37e1c3
2 changed files with 19 additions and 9 deletions
6
.SRCINFO
6
.SRCINFO
|
@ -9,8 +9,10 @@ pkgbase = godot-git
|
||||||
makedepends = git
|
makedepends = git
|
||||||
makedepends = scons
|
makedepends = scons
|
||||||
makedepends = pulseaudio
|
makedepends = pulseaudio
|
||||||
makedepends = clang
|
makedepends = gcc
|
||||||
makedepends = pkgconf
|
makedepends = pkgconf
|
||||||
|
makedepends = xorg-xrandr
|
||||||
|
makedepends = yasm
|
||||||
depends = glu
|
depends = glu
|
||||||
depends = libxcursor
|
depends = libxcursor
|
||||||
depends = libxinerama
|
depends = libxinerama
|
||||||
|
@ -19,10 +21,8 @@ pkgbase = godot-git
|
||||||
depends = mesa
|
depends = mesa
|
||||||
provides = godot
|
provides = godot
|
||||||
conflicts = godot
|
conflicts = godot
|
||||||
source = git://github.com/godotengine/godot.git#branch=master
|
|
||||||
source = godot.desktop
|
source = godot.desktop
|
||||||
source = icon.png
|
source = icon.png
|
||||||
sha256sums = SKIP
|
|
||||||
sha256sums = 2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a
|
sha256sums = 2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a
|
||||||
sha256sums = 99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1
|
sha256sums = 99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1
|
||||||
|
|
||||||
|
|
22
PKGBUILD
22
PKGBUILD
|
@ -1,4 +1,5 @@
|
||||||
# Maintainer: Cristian Porras <porrascristian@gmail.com>
|
# Maintainer: QuantMint <qua/ntmint@/protonm/ail.com>
|
||||||
|
# Contributor: Cristian Porras <porrascristian@gmail.com>
|
||||||
# Contributor: Matthew Bentley <matthew@mtbentley.us>
|
# Contributor: Matthew Bentley <matthew@mtbentley.us>
|
||||||
|
|
||||||
_pkgname=godot
|
_pkgname=godot
|
||||||
|
@ -9,7 +10,7 @@ pkgdesc="Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3
|
||||||
url="http://www.godotengine.org"
|
url="http://www.godotengine.org"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
makedepends=('git' 'scons' 'pulseaudio' 'clang' 'pkgconf')
|
makedepends=('git' 'scons' 'pulseaudio' 'gcc' 'pkgconf' 'xorg-xrandr' 'yasm')
|
||||||
depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa')
|
depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa')
|
||||||
optdepends=()
|
optdepends=()
|
||||||
conflicts=("godot")
|
conflicts=("godot")
|
||||||
|
@ -22,16 +23,25 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source=(
|
source=(
|
||||||
"git://github.com/godotengine/${_pkgname}.git#branch=master"
|
|
||||||
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}"
|
||||||
|
@ -45,7 +55,7 @@ pkgver() {
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}"/${_pkgname}
|
cd "${srcdir}"/${_pkgname}
|
||||||
sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE
|
sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE
|
||||||
scons platform=linuxbsd target=release_debug use_llvm=yes -j$(nproc)
|
scons platform=linuxbsd target=release_debug -j$((`nproc`+1))
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -57,7 +67,7 @@ package() {
|
||||||
|
|
||||||
cd "${srcdir}"/${_pkgname}
|
cd "${srcdir}"/${_pkgname}
|
||||||
|
|
||||||
install -D -m755 bin/godot.linuxbsd.opt.tools.${_arch}.llvm "${pkgdir}"/usr/bin/godot
|
install -D -m755 bin/godot.linuxbsd.opt.tools.${_arch} "${pkgdir}"/usr/bin/godot
|
||||||
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot-git/LICENSE
|
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot-git/LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue