void-packages/srcpkgs/grafx2/template
2022-02-24 00:30:09 +01:00

40 lines
1.3 KiB
Bash

# Template file for 'grafx2'
pkgname=grafx2
version=2.6
revision=2
_recoil_version=4.3.1
wrksrc="grafX2-v${version}"
build_wrksrc="src"
build_style=gnu-makefile
make_build_args="API=sdl2"
hostmakedepends="pkg-config"
makedepends="SDL2_image-devel SDL2_ttf-devel fontconfig-devel lua53-devel"
depends="desktop-file-utils"
short_desc="Bitmap/pixel drawing program like Deluxe Paint"
maintainer="allan <mail@may.mooo.com>"
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
${SOURCEFORGE_SITE}/recoil/${_recoil_version}/recoil-${_recoil_version}.tar.gz"
checksum="1d679216e481b0c22d1d160eb1f66ed6ef2c1ec4eda6f5c0f2ec406d16045534
8f64fd21bafa180e6cbac5853ef65453f080385b3c53600af8360e938668e574"
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
}
do_install() {
vbin ../bin/grafx2-sdl2 grafx2
vman ../misc/unix/grafx2.1
vinstall ../misc/unix/grafx2.desktop 644 usr/share/applications
vinstall ../misc/unix/grafx2.xpm 644 usr/share/pixmaps
vinstall ../share/icons/grafx2.svg 644 usr/share/icons
vcopy ../share/grafx2 usr/share
}