From c7cb603f86b4d4fb6567e3faa15b916a306f7004 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Apr 2012 00:01:35 +0000 Subject: Tue Apr 3 00:01:35 UTC 2012 --- community/wings3d/PKGBUILD | 55 ++++++++++++++++++++++++++++++++++++++ community/wings3d/wings3d | 2 ++ community/wings3d/wings3d.install | 14 ++++++++++ community/wings3d/wings3d.png | Bin 0 -> 5838 bytes 4 files changed, 71 insertions(+) create mode 100644 community/wings3d/PKGBUILD create mode 100644 community/wings3d/wings3d create mode 100644 community/wings3d/wings3d.install create mode 100644 community/wings3d/wings3d.png (limited to 'community/wings3d') diff --git a/community/wings3d/PKGBUILD b/community/wings3d/PKGBUILD new file mode 100644 index 000000000..abaced38c --- /dev/null +++ b/community/wings3d/PKGBUILD @@ -0,0 +1,55 @@ +# $Id: PKGBUILD 61589 2012-01-03 23:37:49Z arodseth $ +# Maintainer: Alexander Rødseth +# Contributor: kappa + +pkgname=wings3d +_pkgname=wings +pkgver=1.4.1 +pkgrel=5 +pkgdesc="3D modeling program" +arch=('x86_64' 'i686') +url="http://www.wings3d.com/" +license=('GPL') +depends=('esdl' 'bash') +makedepends=('setconf' 'gendesk') +optdepends=('povray: rendering support via POV-Ray' + 'kerkythea: rendering support via Kerkythea') +replaces=('wings' 'wings-devel') +install=$pkgname.install +source=("http://downloads.sourceforge.net/wings/$_pkgname-$pkgver.tar.bz2" + "$pkgname" + "$pkgname.png") +sha256sums=('51aea431e18935e5634ea673caa945f586db2203855554d8dcab5e9545f2789a' + '46513cd05f8b6e778120af4a87b239c5250799c17b591592893d98cbf082359e' + 'ad49fded5e503131ee0e2e03a6db0974aa60f50e1ec6cd697fcacef126c40f52') +_genericname=('3D Modeler') + +build() { + cd "$srcdir" + gendesk + setconf "$pkgname.desktop" Categories "Graphics;3DGraphics;" + + cd "$_pkgname-$pkgver" + export ESDL_PATH=$(echo /usr/lib/erlang/lib/esdl-*) + make + make lang +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + mkdir -p "$pkgdir/usr/lib/$pkgname" + for subdir in ebin fonts patches plugins shaders textures; do + cp -r "$srcdir/$_pkgname-$pkgver/$subdir/" "$pkgdir/usr/lib/$pkgname" + done + + install -D -m 755 "$srcdir/wings3d" "$pkgdir/usr/bin/wings3d" + install -D -m 644 "$srcdir/wings3d.desktop" \ + "$pkgdir/usr/share/applications/wings3d.desktop" + install -D -m 644 "$srcdir/wings3d.png" \ + "$pkgdir/usr/share/pixmaps/wings3d.png" + install -D -m 644 license.terms \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/wings3d/wings3d b/community/wings3d/wings3d new file mode 100644 index 000000000..c0fd3b2fb --- /dev/null +++ b/community/wings3d/wings3d @@ -0,0 +1,2 @@ +#!/bin/sh +erl -noinput -smp disable -pa /usr/lib/erlang/lib/esdl-*/ebin /usr/lib/wings3d/ebin -run wings_start start_halt ${1+"$@"} diff --git a/community/wings3d/wings3d.install b/community/wings3d/wings3d.install new file mode 100644 index 000000000..98f3ea190 --- /dev/null +++ b/community/wings3d/wings3d.install @@ -0,0 +1,14 @@ +post_upgrade() { + #gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor + update-desktop-database -q +} + +post_install() { + post_upgrade +} + +post_remove() { + post_upgrade +} + +# vim:set ts=2 sw=2 et: diff --git a/community/wings3d/wings3d.png b/community/wings3d/wings3d.png new file mode 100644 index 000000000..45a1140bf Binary files /dev/null and b/community/wings3d/wings3d.png differ -- cgit v1.2.3-54-g00ecf