summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 482c2a1b6ad83303c1e30659b35e1c669662c7e9 (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
## Maintainer: Adam <classygopher@gmail.com>
pkgname=bolt-launcher
pkgver=0.8.2
pkgrel=4
pkgdesc="Free open-source third-party implementation of the Jagex Launcher"
license=('AGPL3')
url="https://bolt.adamcake.com/"
arch=('x86_64')
depends=('alsa-lib' 'at-spi2-core' 'cairo' 'dbus' 'expat' 'fmt' 'gcc-libs' 'gdk-pixbuf2'
         'glib2' 'glibc' 'gtk3' 'hicolor-icon-theme' 'libarchive' 'libdrm' 'libx11' 'libxcb'
         'libxcomposite' 'libxdamage' 'libxext' 'libxfixes' 'libxkbcommon' 'libxrandr' 'mesa'
         'nspr' 'nss' 'pango')
makedepends=('cmake' 'git')
optdepends=('jre17-openjdk: runelite/hdos' 'gtk2: rs3' 'openssl-1.1: rs3')
source=("git+https://github.com/Adamcake/Bolt.git#tag=${pkgver}"
        "https://adamcake.com/cef/cef-114.0.5735.134-linux-x86_64-minimal-ungoogled.tar.gz"
        "fmt.patch"
        "cef-no-fortify.patch")
sha256sums=('SKIP'
            '72c8c43dcb61f778a807eb262b2c2ebcb2e1705756de5a9003484af0663aa924'
            'd6c2afbfc6e9d89cc0e8c8df5187ad9e56e8f3796d26aa5df353e7457d5577da'
            '20b60ea029fe7fc95d5b8e3d4dcf035a418267d0b3c445bd821205784b037258')

prepare() {
  git -C "$srcdir/Bolt" submodule update --init --recursive
  git -C "$srcdir/Bolt" apply "$srcdir/fmt.patch"
  patch -p1 -d "$srcdir/cef_binary_114.2.11+g87c8807+chromium-114.0.5735.134_linux64_minimal" < "$srcdir/cef-no-fortify.patch"
}

build() {
  cmake -S Bolt -B build -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D CEF_ROOT="$srcdir"/cef_binary_114.2.11+g87c8807+chromium-114.0.5735.134_linux64_minimal -D CMAKE_INSTALL_PREFIX="$pkgdir" -D BOLT_BINDIR=usr/bin -D BOLT_LIBDIR=usr/lib -D BOLT_SHAREDIR=usr/share -D BOLT_META_NAME="$pkgname" -D BOLT_SKIP_LIBRARIES=1
  cmake --build build
}

package() {
  cmake --install build
}