Skip to content

Instantly share code, notes, and snippets.

@GraithTiger
Created August 8, 2024 01:22
Show Gist options
  • Save GraithTiger/c39fee34d7dab69f62b2c689e6e4b153 to your computer and use it in GitHub Desktop.
Save GraithTiger/c39fee34d7dab69f62b2c689e6e4b153 to your computer and use it in GitHub Desktop.
PKGBUILD for firestorm-git
# Maintainer: Alex Tharp <alex at toastercup dot io>
pkgname=firestorm-git
pkgver=7.1.9.74826
pkgrel=1
pkgdesc="A third-party viewer for Second Life (TM) and OpenSim grids (git version)"
arch=('x86_64')
url=https://www.firestormviewer.org
license=('LGPL')
install='firestorm.install'
depends=(
'apr-util'
'dbus-glib'
'gconf'
'glu'
'gtk2'
'lib32-libidn'
'lib32-libsndfile'
'lib32-util-linux'
'lib32-zlib'
'libgl'
'libidn'
'libjpeg-turbo'
'libpng'
'libxcrypt-compat'
'libxml2'
'libxss'
'mesa'
'nss'
'openal'
'sdl'
'vlc'
'zlib'
)
optdepends=(
'alsa-lib: for ALSA support'
'pepper-flash: for inworld Flash support'
'freealut: for OpenAL support'
'lib32-gst-plugins-good: for voice support'
'lib32-libidn11: for voice support'
'libpulse: for PulseAudio support'
'mesa-libgl: For Intel, Radeon, Nouveau support'
'nvidia-libgl: for NVIDIA support'
'nvidia-utils: for NVIDIA support'
)
makedepends=('cmake' 'gcc' 'make' 'python-pip' 'python-virtualenv' 'git' 'boost' 'xz')
conflicts=('firestorm' 'firestorm-bin' 'firestorm-next-bin')
provides=('firestorm')
source=(
"$pkgname"::"git+https://github.com/FirestormViewer/phoenix-firestorm"
"fs-build-variables"::'git+https://github.com/FirestormViewer/fs-build-variables'
'firestorm.desktop'
'firestorm.launcher'
)
sha256sums=('SKIP'
'SKIP'
'78056e7eedc30d6697fb3a856c57eba5a416b4a33db153946ac94324df3e7df8'
'9ad939fff957a231dae4fe7704670e354e648ffe7a5397504c41118399e0e2e6')
pkgver() {
_pkgver=$(find "$srcdir/$pkgname/indra/newview/" -type f -iname viewer_version.txt -exec cat {} +)
cd "$srcdir/$pkgname"
_revnum=$(git rev-list --count HEAD)
printf "%s.%s" $_pkgver $_revnum
}
prepare() {
export AUTOBUILD_VARIABLES_FILE="$srcdir/fs-build-variables/variables"
cd "$pkgname"
virtualenv ".venv" -p python3
source .venv/bin/activate
pip3 install -r "$srcdir/$pkgname/requirements.txt"
# pip3 install git+https://github.com/FirestormViewer/autobuild-3.0
# pip3 install llbase
export CXXFLAGS="$CXXFLAGS -Wno-error"
export CFLAGS="$CFLAGS -Wno-error"
autobuild configure -A 64 -c ReleaseFS_open -- -DLL_TESTS:BOOL=FALSE -DREVISION_FROM_VCS=ON -DPACKAGE:BOOL=Off --chan="ArchLinux"
}
build() {
cd "$srcdir/$pkgname"
source .venv/bin/activate
cd "$srcdir/$pkgname/build-linux-x86_64"
export CXXFLAGS="$CXXFLAGS -Wno-error"
export CFLAGS="$CFLAGS -Wno-error"
make
}
package() {
mkdir -p "$pkgdir/opt/firestorm"
mkdir -p "$pkgdir/usr/share/applications"
mkdir -p "$pkgdir/usr/share/icons/hicolor/512x512/apps"
cp -rT "$pkgname/build-linux-x86_64/newview/packaged" "$pkgdir/opt/firestorm"
install -Dm644 "firestorm.desktop" "$pkgdir/usr/share/applications/firestorm.desktop"
install -Dm644 "$pkgname/build-linux-x86_64/newview/packaged/firestorm_icon.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/firestorm.png"
install -Dm755 "firestorm.launcher" "$pkgdir/usr/bin/firestorm"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment