#Packager: Shador pkgname=wings3d pkgver=1.4.1 pkgrel=1ab source=('http://downloads.sourceforge.net/project/wings/wings/1.4.1/wings-1.4.1.tar.bz2' "wings3d.desktop" "wings3d.png" "wings3d.rc" "wings3d.sh") sourcetemplate="http://gaia.homelinux.org/salix/slkbuilds/$pkgname/" docs=("readme" "authors" "notes*" "old-notes" "build.unix") url='http://www.wings3d.com/' options=("noautodotnew") dotnew=("etc/wings3drc") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (a subdivision modeler)" "Wings 3D is a subdivision modeler inspired by Nendo and Mirai from" "Izware." "It is possible to assign materials, vertex color, UV coordinates and" "textures, but there will be improvements in those features before" "Wings goes 1.0." "There is no support in Wings for doing animations." "" "Wings3D doesn't seem to work with nouveau, use the proprietary driver." "Also in case of graphic problems look at '/etc/wings3drc'." ) build() { set -e cd $startdir/src/wings-$pkgver . /etc/profile.d/esdl.sh # we need this always make -j $numjobs || return 1 make -j $numjobs lang || return 1 eval `grep "WINGS_VSN" vsn.mk | sed -e 's/\ *=\ */=/g'` DESTDIR="$startdir/pkg/`erl -noshell -eval "io:format([126,115,126,110],[code:root_dir()])" -s erlang halt`/lib/${WINGS_VSN}" # there's no make install, do it manually install -vd ${DESTDIR} for subdir in ebin fonts plugins shaders textures; do cp -vr $subdir ${DESTDIR} done cd $startdir/src for size in 16 24 32 48 64 96 128; do dir=$startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps install -vd $dir convert wings3d.png -scale ${size}x${size} $dir/wings3d.png done install -vD -m755 wings3d.sh $startdir/pkg/usr/bin/wings3d install -vD -m644 wings3d.rc $startdir/pkg/etc/wings3drc install -vD -m644 wings3d.rc $startdir/pkg/etc/skel/.wings3drc install -vD -m644 wings3d.desktop $startdir/pkg/usr/share/applications/wings3d.desktop set +e }