diff options
Diffstat (limited to 'community/wings3d/PKGBUILD')
-rw-r--r-- | community/wings3d/PKGBUILD | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/community/wings3d/PKGBUILD b/community/wings3d/PKGBUILD index 1cc5d5830..057466d2b 100644 --- a/community/wings3d/PKGBUILD +++ b/community/wings3d/PKGBUILD @@ -1,51 +1,47 @@ -# $Id: PKGBUILD 85259 2013-02-28 10:18:30Z arodseth $ +# $Id: PKGBUILD 85612 2013-03-03 23:56:10Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: kappa <kappacurve@gmail.com> pkgname=wings3d _pkgname=wings pkgver=1.4.1 -pkgrel=12 +pkgrel=15 pkgdesc='3D modeling program' arch=('x86_64' 'i686') url='http://www.wings3d.com/' license=('GPL') -depends=('erlang-sdl' 'erlang-cl' 'bash' 'desktop-file-utils' 'erlang=R15B03_1') +depends=('erlang' 'erlang-sdl' 'erlang-cl' 'bash' 'desktop-file-utils') makedepends=('setconf' 'gendesk') optdepends=('povray: rendering support via POV-Ray') install=$pkgname.install -source=("$pkgname-$pkgver.tar.gz::https://nodeload.github.com/dgud/wings/tar.gz/dgud/r15b-driver-compat" - "$pkgname.sh" +options=('!emptydirs') +# Using the binary release, but would prefer using a source release, if there is one that compiles +source=("http://sourceforge.net/projects/$_pkgname/files/$_pkgname/$pkgver/$_pkgname-$pkgver-linux.bzip2.run.gz" "$pkgname.png::http://img299.imageshack.us/img299/2538/wingsiconblackshiningew5.png") -sha256sums=('b89aca41937d4d07424ccc0447eb5a6c3755350428201d7d7644e467dcd20fdf' - '46513cd05f8b6e778120af4a87b239c5250799c17b591592893d98cbf082359e' +sha256sums=('760e19fa4973ed0fc75057897135a8efa241e834b078fc05c28786672137b322' '6658977cc3bc8db2c9358edf3a2d6cb6bb8084c9a1d96ca573a83dd4e8781f1a') _genericname=('3D Modeler') -_dirname="$_pkgname-dgud-r15b-driver-compat" build() { cd "$srcdir" gendesk setconf "$pkgname.desktop" Categories "Graphics;3DGraphics;" - cd "$_dirname" - export ESDL_PATH=$(echo /usr/lib/erlang/lib/esdl-*) - make - make lang + chmod +x "$_pkgname-$pkgver-linux.bzip2.run" + "./$_pkgname-$pkgver-linux.bzip2.run" --nox11 --nochown --tar xf > /dev/null + setconf install_wings INSTALL_DIR "$pkgdir/opt/$pkgname-$pkgver" } package() { - cd "$srcdir/$_dirname" - - mkdir -p "$pkgdir/usr/lib/$pkgname" - for subdir in ebin fonts patches plugins shaders textures; do - cp -r "$srcdir/$_dirname/$subdir/" "$pkgdir/usr/lib/$pkgname" - done + cd "$srcdir" + ./install_wings - install -Dm644 license.terms "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "$pkgdir" + setconf "opt/$pkgname-$pkgver/$_pkgname" ROOTDIR "/opt/$pkgname-$pkgver" + install -Dm755 "opt/$pkgname-$pkgver/$_pkgname" "$pkgdir/usr/bin/$pkgname" cd "$srcdir" - install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname" + install -Dm644 license.terms "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" install -Dm644 "$pkgname.desktop" \ "$pkgdir/usr/share/applications/$pkgname.desktop" |