void-packages/srcpkgs/grafx2/template
cr6git 00e7e26f7b grafx2: fix version, license, distfiles.
Closes #13585.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-04-18 23:24:08 +02:00

32 lines
997 B
Bash

# Template file for 'grafx2'
pkgname=grafx2
version=2.4.2035
revision=1
wrksrc=grafx2
build_wrksrc="src"
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="freetype-devel lua-devel SDL_image-devel SDL_ttf-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
pre_build() {
# musl __sighandler_t fix
sed -i 's/defined(__macosx__)/!defined(__GLIBC__)/' init.c
# fix pie
export LFLAGS="$LDFLAGS"
}
do_install() {
vbin ../bin/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
}