void-packages/srcpkgs/grafx2/template
2016-10-10 17:05:35 +02:00

31 lines
903 B
Bash

# Template file for 'grafx2'
pkgname=grafx2
version=2.4
revision=1
wrksrc=grafx2
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="SDL_ttf-devel SDL_image-devel freetype-devel lua-devel"
short_desc="Bitmap/pixel drawing program like Deluxe Paint"
maintainer="allan <mail@may.mooo.com>"
license="GPL-1"
homepage="http://pulkomandy.tk/projects/GrafX2/"
distfiles="http://pulkomandy.tk/projects/GrafX2/downloads/21>$pkgname-$version.tgz"
checksum=5818caea63cd3cf3318baf01dd20f81ec61e4514443000c80a41b68ab3f17a6b
pre_build() {
cd src
# 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
vmkdir usr/share/
mv share/* ${DESTDIR}/usr/share/
}