updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gsculpt / PKGBUILD
blobfa08d85d013f63276ab544b70af963ee2e37f4fc
1 # Contributer: N30N <archlinux@alunamation.com>
3 pkgname=gsculpt
4 pkgver=0.99.47
5 pkgrel=1
6 pkgdesc="A procedural 3D modelling application with a comprehensive set of \
7         polygon mesh editing tools."
8 url="http://gsculpt.sourceforge.net"
9 license="GPL2"
10 arch=("i686" "x86_64")
11 depends=("boost" \
12         "python-gtkglext" \
13         "python-imaging")
14 makedepends=("scons")
15 source=("http://downloads.sourceforge.net/${pkgname}/gSculpt-${pkgver}-alpha-src.tar.gz" \
16         "gsculpt.desktop")
17 sha256sums=("cb7f0cbff996da66318ab0e2e9bd5f5ebf1170ab9daa4b504e6fc68736d7bc30" \
18         "c2bafd2108c9a920bc3acd2cd2277f46ad3a3ed1db3f18907cd3f07e0e21720a")
21 build() {
22         cd gSculpt-${pkgver}-alpha
24         sed 10a"#include <cstdio>" -i cpp/Math/Vector2.h
25         sed -r "s/^(cppLibs.*)BackgroundModel/\1BackgroundMesh/" -i SConstruct
26         sed -r \
27                 -e "s|^(prefix = ).*|\1\"${pkgdir}/usr\"|" \
28                 -e "s|^(gSculptStartDir = ).*|\1\"${pkgdir}/usr/lib/gSculpt\"|" \
29                 -i SConstruct-install
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|" \
33                 -i posixbuild/gsculpt
35         scons --jobs=$[${MAKEFLAGS/-j/} - 1]
38 package () {
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