1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: kappa <kappacurve@gmail.com>
7 pkgdesc='3D modeler using the winged edge data structure'
9 url='http://www.wings3d.com/' # https is not available
11 depends=(erlang erlang-cl erlang-sdl)
13 optdepends=('povray: render scenes with POV-Ray')
14 source=("https://downloads.sourceforge.net/project/wings/wings/$pkgver/wings-$pkgver.tar.bz2"
16 sha256sums=('95ecf84a8f49bc00b983643e7ccd807f64a3b8b88253037a8ccefbe7a3bedff8'
17 '0b1c4a8d89196cd31411e9b388c28f241ed8e5c978732ca006d70dabf4c165d5')
23 --pkgdesc "$pkgdesc" \
24 --genericname '3D Modeler' \
25 --categories 'Graphics;3DGraphics'
26 sed -i "/desktop-id/ s/com.wings3d.WINGS.desktop/$pkgname.desktop/" ${pkgname%3d}-$pkgver/unix/wings.appdata.xml
30 export ERL_LIBS="$srcdir"
31 make -C ${pkgname%3d}-$pkgver unix
35 install -Dm755 wings.sh "$pkgdir/usr/bin/$pkgname"
36 install -Dm644 -t "$pkgdir/usr/share/applications" $pkgname.desktop
37 cd ${pkgname%3d}-$pkgver
38 install -Dm644 icons/wings_icon_48x48.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"
39 install -Dm644 icons/wings_icon_256x256.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
40 install -Dm644 unix/wings.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
42 install -d "$pkgdir/usr/lib/$pkgname"
43 cp -r wings-$pkgver-linux/lib/wings-$pkgver/* "$pkgdir/usr/lib/$pkgname"
46 # getver: -u=2 github.com/dgud/wings/releases