archrelease: copy trunk to community-any
[ArchLinux/community.git] / wings3d / trunk / PKGBUILD
blob42148bd717fef936cf3a69648cf50f0f03056c9e
1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: kappa <kappacurve@gmail.com>
4 pkgname=wings3d
5 pkgver=2.2.5
6 pkgrel=4
7 pkgdesc='3D modeler using the winged edge data structure'
8 arch=(x86_64)
9 url='http://www.wings3d.com/' # https is not available
10 license=(GPL)
11 depends=(erlang erlang-cl erlang-sdl)
12 makedepends=(gendesk)
13 optdepends=('povray: render scenes with POV-Ray')
14 source=("https://downloads.sourceforge.net/project/wings/wings/$pkgver/wings-$pkgver.tar.bz2"
15         wings.sh)
16 sha256sums=('95ecf84a8f49bc00b983643e7ccd807f64a3b8b88253037a8ccefbe7a3bedff8'
17             '0b1c4a8d89196cd31411e9b388c28f241ed8e5c978732ca006d70dabf4c165d5')
19 prepare() {
20   gendesk -f -n \
21     --name 'Wings 3D' \
22     --pkgname $pkgname \
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
29 build() {
30   export ERL_LIBS="$srcdir"
31   make -C ${pkgname%3d}-$pkgver unix
34 package() {
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"
41   cd build
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