grafx2: fix build

This commit is contained in:
maxice8 2018-01-16 12:24:44 -02:00 committed by Leаh Neukirchen
parent 20f021a8f3
commit 7c2efc3f69
1 changed files with 6 additions and 6 deletions

View File

@ -3,6 +3,7 @@ pkgname=grafx2
version=2.4
revision=1
wrksrc=grafx2
build_wrksrc="src"
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="SDL_ttf-devel SDL_image-devel freetype-devel lua-devel"
@ -14,7 +15,6 @@ distfiles="http://pulkomandy.tk/projects/GrafX2/downloads/21>$pkgname-$version.t
checksum=5818caea63cd3cf3318baf01dd20f81ec61e4514443000c80a41b68ab3f17a6b
pre_build() {
cd src
# musl __sighandler_t fix
sed -i 's/defined(__macosx__)/!defined(__GLIBC__)/' init.c
# fix pie
@ -22,10 +22,10 @@ pre_build() {
}
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
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/
mv ../share/* ${DESTDIR}/usr/share/
}