summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9bc5b206f0f6228975d5db8efd7d8539c9deddf4 (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
# Maintainer: Mitkomm <Mitkomm at proton dot me>

pkgname=cubiclauncher
pkgver=31.0.0
pkgrel=1
pkgdesc="Open-source Minecraft launcher"
arch=('x86_64')
license=('GPL-3.0-only')
url='https://github.com/CubicLauncherDevs/CubicLauncher'
depends=(
  'webkit2gtk-4.1'
  'libsoup3'
  'gtk3'
  'gstreamer'
  'gst-plugins-base'
  'gst-plugins-good'
  'gst-plugins-bad'
  'gst-libav'
  'libglvnd'
  'mesa'
  'zstd'
  'openssl'
)
makedepends=(
  'cargo'
  'bun'
  'pkgconf'
  'base-devel'
  'git'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/CubicLauncherDevs/CubicLauncher/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('1c04437cce4a37c81a033fd99993bc7faf7535f437648ee7b0bd60672e07bc63')

options=(!lto)

build() {
  cd "$srcdir/CubicLauncher-$pkgver"

  bun install
  bun run tauri build --no-bundle
}

package() {
  cd "$srcdir/CubicLauncher-$pkgver"

  install -Dm755 \
    target/release/cubiclauncher \
    "$pkgdir/usr/bin/cubiclauncher"

  install -Dm644 \
    src-tauri/icons/32x32.png \
    "$pkgdir/usr/share/icons/hicolor/32x32/apps/cubiclauncher.png"

  install -Dm644 \
    src-tauri/icons/128x128.png \
    "$pkgdir/usr/share/icons/hicolor/128x128/apps/cubiclauncher.png"

  install -Dm644 \
    src-tauri/icons/128x128@2x.png \
    "$pkgdir/usr/share/icons/hicolor/256x256/apps/cubiclauncher.png"

  install -Dm644 \
    src-tauri/icons/icon.png \
    "$pkgdir/usr/share/icons/hicolor/512x512/apps/cubiclauncher.png"

  install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/cubiclauncher.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=CubicLauncher
Comment=Open source Minecraft launcher
Exec=/usr/bin/cubiclauncher
Icon=cubiclauncher
Terminal=false
Categories=Game;
StartupWMClass=cubiclauncher
EOF

  install -Dm644 \
    LICENSE \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}