blob: d475df1f9f75ad2835c17f70c20e8a34b5bc0b8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Maintainer:
# Contributor: slomomojo <slomomojo@gmail.com>
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: kappa <kappacurve@gmail.com>
## links
# https://www.wings3d.com
# https://github.com/dgud/wings
_pkgname="wings3d"
pkgname="$_pkgname"
pkgver=2.4
pkgrel=1
pkgdesc='3D modeler using the winged edge data structure'
url="https://www.wings3d.com/"
license=('GPL-2.0-or-later')
arch=('x86_64')
depends=(
'erlang'
'erlang-cl'
)
makedepends=(
'git'
)
optdepends=(
'povray: render scenes with POV-Ray'
)
_pkgsrc="wings-$pkgver"
_pkgext="tar.gz"
source=(
"$_pkgname-$pkgver.$_pkgext"::"https://github.com/dgud/wings/archive/refs/tags/v$pkgver.$_pkgext"
)
sha256sums=(
'266e016ae5d1705e41c3f33c1a94ee345354f1429b6f35c5dd470f85fb55c4a1'
)
prepare() {
sed -e "/desktop-id/ s/com.wings3d.WINGS.desktop/$pkgname.desktop/" -i "$_pkgsrc/unix/wings.appdata.xml"
}
build() {
export ERL_LIBS="$srcdir"
make -C "$_pkgsrc" unix
}
package() {
cd "$_pkgsrc"
install -Dm644 "icons/wings_icon_379x379.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
install -Dm644 unix/wings.appdata.xml "$pkgdir/usr/share/metainfo/$_pkgname.appdata.xml"
cd build
install -dm755 "$pkgdir/usr/lib/$_pkgname"
cp --reflink=auto -r wings-*-linux/lib/"$_pkgsrc"/* "$pkgdir/usr/lib/$_pkgname/"
install -Dm755 /dev/stdin "$pkgdir/usr/bin/$_pkgname" << 'END'
#!/usr/bin/env bash
GDK_BACKEND=x11 exec /usr/bin/erl -noinput -smp \
-pa /usr/lib/wings3d/ebin \
-run wings_start start_halt "$@"
END
install -Dm644 /dev/stdin -t "$pkgdir/usr/share/applications/$_pkgname.desktop" << END
[Desktop Entry]
Type=Application
Name=Wings 3D
GenericName=3D Modeler
Comment=$pkgdesc
Exec=$_pkgname
Icon=$_pkgname
Terminal=false
StartupNotify=false
Categories=Graphics;3DGraphics;
END
# fix permissions
chmod -R u=rwX,go=rX,go-w "$pkgdir"
}
|