made a gdevelop-git PKGBUILD for arch/manjaro linux users

It fetches the latest master build straight from github and makes a package out of it, which it installs. I altered victor’s script to do that. :slight_smile:

here is the pkgbuild:

[code]# Maintainer: Victor Levasseur victorlevasseur52@gmail.com

Altered by Todor Imreorov for github blurymind@gmail.com

pkgname=gdevelop-git
pkgver=master
pkgrel=1
pkgdesc=“GDevelop is a full featured, open source game development software, allowing to create HTML5 and native games without needing any knowledge in a specific programming language. All the game logic is made thanks to an intuitive and powerful event based system.”
arch=(‘i686’ ‘x86_64’)
url=“http://www.compilgames.net
license=(‘GPL’ ‘MIT’ ‘zlib/png’)
groups=()
install=‘GD.install’
makedepends=(‘rsync’ ‘cmake’ ‘git’ ‘curl’)
depends=(‘gcc’ ‘wxgtk’ ‘openal’ ‘p7zip’ ‘glew’ ‘libsndfile’ ‘systemd’ ‘libjpeg-turbo’ ‘desktop-file-utils’ ‘gtk-update-icon-cache’)
#changelog=‘PKGBUILD.changelog’
source=(‘git+https://github.com/4ian/GD.git’)
md5sums=(SKIP)

pkgver() {
cd “$srcdir/GD”
ver=$(git describe --abbrev=0 | sed -e ‘s/[^.0-9]//g’)
count=$(git rev-list --count HEAD)
commit=$(git rev-parse --short HEAD)
echo $ver.r$count.$commit
}

build() {
cd “$srcdir”/GD
cd Binaries
rm -rf .build
mkdir .build
cd .build
cmake …/…

#Build the whole project
make -j4
}

package() {
cd “$srcdir”/GD
cd Binaries/.build
make install DESTDIR="$pkgdir"
#Remove sfml installed libs
rm -rf “$pkgdir”/usr/local
}
[/code]

and here is the GD.install file:

[code]post_install() {
update-mime-database usr/share/mime
update-desktop-database
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

post_upgrade() {
update-mime-database usr/share/mime
update-desktop-database
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

post_remove() {
update-mime-database usr/share/mime
update-desktop-database
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
[/code]

Please give it a test, see if there are any mistakes. It works alright for me.

changed the build script slightly - to make a package with a better name. This one needs to be tested though. Also where at github is the release text file log? Maybe we can hook that into the PKGBUILD.changelog file

here is the pkgbuild:

[code]# Maintainer: Victor Levasseur victorlevasseur52@gmail.com

Altered by Todor Imreorov for github blurymind@gmail.com

pkgname=gdevelop-git
pkgver=master
pkgrel=1
pkgdesc=“GDevelop is a full featured, open source game development software, allowing to create HTML5 and native games without needing any knowledge in a specific programming language. All the game logic is made thanks to an intuitive and powerful event based system.”
arch=(‘i686’ ‘x86_64’)
url=“http://www.compilgames.net
license=(‘GPL’ ‘MIT’ ‘zlib/png’)
groups=()
install=‘GD.install’
makedepends=(‘rsync’ ‘cmake’ ‘git’ ‘curl’)
depends=(‘gcc’ ‘wxgtk’ ‘openal’ ‘p7zip’ ‘glew’ ‘libsndfile’ ‘systemd’ ‘libjpeg-turbo’ ‘desktop-file-utils’ ‘gtk-update-icon-cache’)
#changelog=‘PKGBUILD.changelog’
source=(‘git+https://github.com/4ian/GD.git’)
md5sums=(SKIP)

pkgver() {
cd “$srcdir/GD”
ver=$(git describe --abbrev=0 | sed -e ‘s/[^.0-9]//g’)
count=$(git rev-list --count HEAD)
commit=$(git rev-parse --short HEAD)
echo $ver-$count-$commit
}

build() {
cd “$srcdir”/GD
cd Binaries
rm -rf .build
mkdir .build
cd .build
cmake …/…

#Build the whole project
make -j4
}

package() {
cd “$srcdir”/GD
cd Binaries/.build
make install DESTDIR="$pkgdir"
#Remove sfml installed libs
rm -rf “$pkgdir”/usr/local
}
[/code]

and here is the GD.install file:

[code]post_install() {
update-mime-database usr/share/mime
update-desktop-database
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

post_upgrade() {
update-mime-database usr/share/mime
update-desktop-database
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

post_remove() {
update-mime-database usr/share/mime
update-desktop-database
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
[/code]

Please give it a test, see if there are any mistakes. It works alright for me.

Here is a build script for AUR:

aur.archlinux.org/packages/gdevelop-git/

Had to shorten the description slightly in order to get it approved. :unamused:

If you are on Arch or manjaro or other arch based distro, type this in terminal

yaourt gdevelop-git

And it should get listed there. Cheers! :mrgreen:

Btw it needs testing, did I mention. I am waiting on victor and 4ian to commit fixes to some of my bug reports before building a new git version with the script again.

I need to reupload the script, it got deleted in the transition to a new AUR system.

I made a few updates to it

[code]# Maintainer: Todor Imreorov for github blurymind@gmail.com

pkgname=gdevelop-git
pkgver=master
pkgrel=1
pkgdesc=“GDevelop is a full featured, open source game development software, allowing to create HTML5 and native games without needing any knowledge in a specific programming language. All the game logic is made thanks to an intuitive and powerful event based system.”
arch=(‘i686’ ‘x86_64’)
url=“http://www.compilgames.net
license=(‘GPL’ ‘MIT’ ‘zlib/png’)
groups=()
conflicts=(‘gdevelop’)
install=‘GD.install’
makedepends=(‘rsync’ ‘cmake’ ‘git’ ‘curl’)
depends=(‘gcc’ ‘wxgtk’ ‘openal’ ‘p7zip’ ‘glew’ ‘libsndfile’ ‘systemd’ ‘libjpeg-turbo’ ‘desktop-file-utils’ ‘gtk-update-icon-cache’)
#changelog=‘PKGBUILD.changelog’
source=(‘git+https://github.com/4ian/GD.git’)
md5sums=(SKIP)

pkgver() {
cd “$srcdir/GD”
ver=$(git describe --abbrev=0 | sed -e ‘s/[^.0-9]//g’)
count=$(git rev-list --count HEAD)
commit=$(git rev-parse --short HEAD)
echo $ver.r$count.$commit
}

build() {
cd “$srcdir”/GD
cd Binaries
rm -rf .build
mkdir .build
cd .build
cmake …/…

#Build the whole project
make -j4
}

package() {
cd “$srcdir”/GD
cd Binaries/.build
make install DESTDIR="$pkgdir"
#Remove sfml installed libs
rm -rf “$pkgdir”/usr/local
}[/code]

Cool :smiley: Thanks for maintaining the script :slight_smile: