1 # Contributer: N30N <archlinux@alunamation.com>
6 pkgdesc="A procedural 3D modelling application with a comprehensive set of \
7 polygon mesh editing tools."
8 url="http://gsculpt.sourceforge.net"
10 arch=("i686" "x86_64")
15 source=("http://downloads.sourceforge.net/${pkgname}/gSculpt-${pkgver}-alpha-src.tar.gz" \
17 sha256sums=("cb7f0cbff996da66318ab0e2e9bd5f5ebf1170ab9daa4b504e6fc68736d7bc30" \
18 "c2bafd2108c9a920bc3acd2cd2277f46ad3a3ed1db3f18907cd3f07e0e21720a")
22 cd gSculpt-${pkgver}-alpha
24 sed 10a"#include <cstdio>" -i cpp/Math/Vector2.h
25 sed -r "s/^(cppLibs.*)BackgroundModel/\1BackgroundMesh/" -i SConstruct
27 -e "s|^(prefix = ).*|\1\"${pkgdir}/usr\"|" \
28 -e "s|^(gSculptStartDir = ).*|\1\"${pkgdir}/usr/lib/gSculpt\"|" \
30 sed -e "s/python/python2/" \
31 -e "s|#GSCULPT_LIBRARY_PATH#|/usr/lib/gSculpt|" \
32 -e "s|#GSCULPT_START#|/usr/lib/gSculpt/gsculpt.py|" \
35 scons --jobs=$[${MAKEFLAGS/-j/} - 1]
39 cd gSculpt-${pkgver}-alpha
41 scons -f SConstruct-install -Q install
43 install -D -m755 posixbuild/gsculpt ${pkgdir}/usr/bin/gsculpt
44 install -D -m644 ${srcdir}/gsculpt.desktop \
45 ${pkgdir}/usr/share/applications/gsculpt.desktop
48 # vim: set noet ff=unix