summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddd518b159d62ecd984d342ce9e995e5badff5dd (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Maintainer: Vaporeon <vaporeon@vaporeon.io>
# Co-maintainer: Nebulosa <nebulosa2007 at yandex dot ru>

pkgname=maxx-desktop
_name="MaXX"
pkgver=2.2.0
pkgrel=7
pkgdesc="MaXX Interactive Desktop"
arch=(x86_64)
url="https://docs.maxxinteractive.com/"
license=(LicenseRef-MaXX-license)
depends=(
  alsa-utils
  at-spi2-core
  cairo
  curl
  fontconfig
  freeglut
  freetype2
  gcc                      # ?? needed in MaXX/bin64/desktopenv:293
  gcc-libs
  gdk-pixbuf2
  # giflib4                # obsolete building issue
  glib2
  glibc
  glu
  glew
  gtk2
  gtk3
  imlib2
  # java-runtime            # needed for MaXX/java/*.jar, skipping for now for shrink dependencies size
  libglvnd
  libjpeg6-turbo
  libice
  libid3tag
  libnotify
  libpng
  libpng15
  libtiff5
  libsm
  libwebp
  libx11
  libxau
  libxaw
  libxcb
  libxcomposite
  libxcrypt-compat
  libxdamage
  libxext
  libxfixes
  libxft
  libxi
  libxinerama
  libxkbfile
  libxml2
  libxmu
  libxp
  libxpm
  libxrandr
  libxrender
  libxss
  libxt
  libxxf86vm
  libwebp
  ncurses5-compat-libs
  noto-fonts
  noto-fonts-extra
  openmotif
  pango
  pcre
  perl
  sh
  ttf-dejavu
  wayland                   # ?? for dunst
  xorg-server
  xorg-xinit
  xorg-xrdb
  xorg-xsetroot
  xz
  zlib
)
optdepends=(
  'blender: Open-source 3D computer graphics'
  'firefox: Web browser'
  'gimp: Image editor'
  'inkscape: Vector image editor'
  'libreoffice-fresh: Office suite'
  'lightdm: Login manager'
  'pavucontrol: Sound audio mixer'
  'vlc: Multi-media'
  'xorg-apps: Useful X11 apps'
  'xpdf: PDF viewer'
)
options=(!debug)
source=("$pkgname-$pkgver.gz::https://s3.ca-central-1.amazonaws.com/cdn.maxxinteractive.com/$pkgname-installer/$_name-Desktop-v$pkgver-LINUX-${arch[0]}-tar.gz")
noextract=("$pkgname-$pkgver.gz")
sha512sums=('4c869dd59ce33f9786e3a35bc11833a2e8f67705d9d235e0875ae5bbdbbafb02c9736bc7d0419112c0ad95b76de944044269607e78d7f08390ff778f6cb513d9')
b2sums=('6db87f67b9eb960967ca5eb93e13ebe6c532d7d7a5f7f06344bed04909d0856b62faa422501b8738b9ba23f0526cc13d7a9a16140fc1455bff3708f62c1d71c2')

package() {
  install -vd "$pkgdir"/opt
  tar zxf "$pkgname-$pkgver.gz" \
    --no-same-owner \
    --exclude="java" \
    --exclude="include/Vue/Grafix/Platform/Vulkan" \
    --exclude="share/icons/hicolor" \
    --exclude="share/man" \
    --exclude="share/misc/HOME/rox.sourceforge.net/SendTo" \
    --exclude="share/misc/HOME/rox.sourceforge.net/Templates" \
    --exclude="share/msettings/FileTypes" \
    --exclude=".directory" \
    --exclude=".ms.swp" \
    --exclude=".dumpster" \
    -C "$pkgdir"/opt # Except conflict files from other packages and other rubbish files

  # Fix non UTF-8 name
  mv "$pkgdir"/opt/$_name/share/wallpapers/Octane-Wallpapers/pexels-c{รก,a}tia-matos-1072179.jpg

  # Fix permissions
  chmod go+r "$pkgdir"/opt/$_name/share/misc/HOME/rox.sourceforge.net/MIME-types/{application_x-,}executable
  find "$pkgdir"/opt/$_name/share/inventor/data/models/ -type d -exec chmod go+x {} \;

  install -vDm 644 "$pkgdir"/opt/$_name/doc/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/

  install -vd "$pkgdir"/usr/share/icons
  cd "$pkgdir"/opt/$_name/share/icons
  for _iconfolder in Irix XCursor-Pro-Red redSGI sgi; do
    ln -s "/opt/$_name/share/icons/$_iconfolder" "$pkgdir/usr/share/icons/$_iconfolder"
  done

  install -vDm 644 "$pkgdir"/{opt/$_name,usr}/share/xsessions/${pkgname//-/.}
}
OSZAR »