summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96a280e642c0cd0ad51f7e310ba82b25a4936061 (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
# Maintainer: Alex Tharp <alex at toastercup dot io>
_appname=firestorm-beta
pkgname="${_appname}-bin"
provides=("${_appname}")
conflicts=("${_appname}")
pkgver=7.1.11.76493
pkgrel=1
pkgdesc="Firestorm is a feature-packed third-party viewer for Second Life (beta version)"
url="https://www.firestormviewer.org/early-access-beta-downloads/"
license=("LGPL-2.1-only")
arch=("x86_64")
depends=(
  "apr-util"
  "dbus-glib"
  "glib2>=2.35"
  "glu"
  "lib32-libidn"
  "lib32-libsndfile"
  "lib32-util-linux"
  "lib32-zlib"
  "libbsd"
  "libgl"
  "libidn"
  "libjpeg-turbo"
  "libpng"
  "libxcrypt-compat"
  "libxml2"
  "libxss"
  "mesa"
  "nss"
  "openal"
  "sdl"
  "vlc"
  "zlib"
)
optdepends=(
  "alsa-lib: for ALSA support"
  "freealut: for OpenAL support"
  "gst-plugins-bad: for video support"
  "gst-plugins-good: for video support"
  "gst-plugins-ugly: for video support"
  "gstreamer: For video support - may need good, bad and ugly plugins"
  "lib32-alsa-lib: for ALSA support"
  "lib32-freealut: for OpenAL support"
  "lib32-libidn11: for legacy Vivox voice support - will soon be fully replaced by WebRTC"
  "libpulse: for PulseAudio support"
  "nvidia-utils: for NVIDIA support"
)
install="${_appname}.install"
tardir="Phoenix-Firestorm-Betax64_AVX2-${pkgver//./-}"
source=(
  "https://downloads.firestormviewer.org/preview/linux/${tardir}.tar.xz"
  "${_appname}.desktop"
)
md5sums=(
  "f0b6fcb618ab4e78c747465bd7feceb0"
  "93d783636a291d1755004f64adc96dce"
)

package() {
  install -d "${pkgdir}/opt"
  cp -a "${srcdir}/${tardir}" "${pkgdir}/opt/${_appname}"

  cd "${pkgdir}/opt/${_appname}"
  find "app_settings" "skins" -type f -execdir chmod 644 "{}" +

  install -D -m644 "${srcdir}/${_appname}.desktop" "$pkgdir/usr/share/applications/${_appname}.desktop"
  install -D -m644 "firestorm_icon.png" "$pkgdir/usr/share/pixmaps/${_appname}.png"

  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 "LGPL-license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -m644 "licenses.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.bundled"

  install -d "${pkgdir}/usr/bin"
  ln -s "/opt/${_appname}/firestorm" "${pkgdir}/usr/bin/${_appname}"
}