Merge pull request #4934 from allan/grfx2

New package: grafx2-2.4.
This commit is contained in:
allan 2016-10-11 19:54:05 +02:00 committed by GitHub
commit dfacde0578

31
srcpkgs/grafx2/template Normal file
View file

@ -0,0 +1,31 @@
# 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/
}