blob: 7bff97243459af7f9965e236eabf7fb67559302b (
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
|
# $Id: PKGBUILD 176459 2016-05-24 21:23:19Z arodseth $
# Maintainer (Arch): Alexander F Rødseth <rodseth@gmail.com>
# Contributor (Arch): kappa <kappacurve@gmail.com>
# Maintainer: Márcio Silva <coadde@parabola.nu>
pkgname=wings3d
_pkgname=wings
pkgver=1.5.4
pkgrel=2.parabola1
pkgdesc='3D modeling program, without nonfree kerkythea render support'
arch=('x86_64' 'i686')
url='http://www.wings3d.com/'
license=('GPL')
depends=('erlang-sdl' 'erlang-cl' 'bash' 'desktop-file-utils' 'erlang')
makedepends=('gendesk' 'imagemagick')
optdepends=('povray: rendering support via POV-Ray')
conflicts=("${pkgname}-libre")
replaces=("${pkgname}-libre")
source=("http://downloads.sourceforge.net/project/wings/wings/$pkgver/wings-$pkgver.tar.bz2"
"$pkgname.sh")
sha256sums=('bd04ca1c1237f3a6f29ce3f653015e21142b849b338a3d1ab8633e3c6bcde663'
'46513cd05f8b6e778120af4a87b239c5250799c17b591592893d98cbf082359e')
prepare() {
gendesk -f -n \
--pkgname "$pkgname" --pkgdesc "$pkgdesc" --name 'Wings3D' \
--genericname '3D Modeler' --categories 'Graphics;3DGraphics'
convert "$_pkgname-$pkgver/win32/wings.ico" "$pkgname.png"
# Path fix for building wpc_lwo
ln -s "$srcdir/$_pkgname-$pkgver" \
"$_pkgname-$pkgver/plugins_src/import_export/wings"
}
build() {
export ESDL_PATH=$(echo /usr/lib/erlang/lib/esdl-*)
make -C "$_pkgname-$pkgver" all lang
}
package() {
install -Dm644 "$pkgname-3.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm644 "$pkgname.desktop" \
"$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
install -d "$pkgdir/usr/lib/$pkgname"
cd "$_pkgname-$pkgver"
for subdir in ebin fonts patches plugins shaders textures; do
cp -r "$srcdir/$_pkgname-$pkgver/$subdir/" "$pkgdir/usr/lib/$pkgname"
done
msg 'remove nonfree kerkythea render support plugin'
rm -v $pkgdir/usr/lib/$pkgname/plugins/import_export/wpc_kerky.beam
msg 'remove deprecated yafray render support plugin'
rm -v $pkgdir/usr/lib/$pkgname/plugins/import_export/wpc_yafray{.beam,_{de,en,fr,ko}.lang}
}
# getver: wings3d.com/?page_id=84
# vim:set ts=2 sw=2 et:
|