grafx2: update to 2.5.

Closes #14238.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
This commit is contained in:
John 2018-05-08 14:24:07 +02:00 committed by Enno Boland
parent 81c3da77ee
commit 081ca943a3
2 changed files with 18 additions and 9 deletions

View file

@ -1,25 +1,32 @@
# Template file for 'grafx2'
pkgname=grafx2
version=2.4.2035
version=2.5
revision=1
wrksrc=grafx2
_recoil_version=4.2.0
wrksrc="grafX2-v${version}"
build_wrksrc="src"
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="freetype-devel lua-devel SDL_image-devel SDL_ttf-devel"
makedepends="SDL_image-devel SDL_ttf-devel fontconfig-devel lua-devel"
depends="desktop-file-utils"
short_desc="Bitmap/pixel drawing program like Deluxe Paint"
maintainer="allan <mail@may.mooo.com>"
license="GPL-2"
homepage="http://pulkomandy.tk/projects/GrafX2/"
distfiles="http://pulkomandy.tk/projects/GrafX2/downloads/grafx2-${version}-src.tgz"
checksum=5818caea63cd3cf3318baf01dd20f81ec61e4514443000c80a41b68ab3f17a6b
license="GPL-2.0-only"
homepage="http://grafx2.chez.com/"
#changelog="http://grafx2.chez.com/index.php?article9/2010s"
distfiles="https://gitlab.com/GrafX2/grafX2/-/archive/v${version}/grafX2-v${version}.tar.gz
https://sourceforge.net/projects/recoil/files/recoil/${_recoil_version}/recoil-${_recoil_version}.tar.gz"
checksum="e09147f7dd6b3a6040c0a79d97f41d383f05906068fea46af2ccd5826e0fe063
4e8c8e3048b143654da49cc1187a0b26679c9f97f841edc0ba9e0b2e2e7f18e5"
post_extract() {
mv ../recoil-${_recoil_version} 3rdparty/
touch 3rdparty/recoil-${_recoil_version}/.ok
}
pre_build() {
# musl __sighandler_t fix
sed -i 's/defined(__macosx__)/!defined(__GLIBC__)/' init.c
# fix pie
export LFLAGS="$LDFLAGS"
}
do_install() {

2
srcpkgs/grafx2/update Normal file
View file

@ -0,0 +1,2 @@
site="https://gitlab.com/GrafX2/grafX2/tags"
pattern='href="/\QGrafX2/grafx2\E/tags/[^\d\.]*\K[\d\.]*'