summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 990f744ebe15316490e4efa24271d27d14be8e38 (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
# Maintainer: Nikos Toutountzoglou <nikos dot toutou at protonmail dot com>

pkgname=curseforge-bin
_pkgname=${pkgname%-bin}
_app="CurseForge"
pkgver=1.272.1.23373
pkgrel=1
pkgdesc="Download and manage your addons, custom content, and mods with the CurseForge app"
arch=('x86_64')
url="https://curseforge.overwolf.com"
license=('LicenseRef-Overwolf-Website-Terms-of-Use')
depends=(
  'alsa-lib'
  'at-spi2-core'
  'cairo'
  'dbus'
  'expat'
  'gcc-libs'
  'gdk-pixbuf2'
  'glib2'
  'glibc'
  'gtk3'
  'hicolor-icon-theme'
  'libcups'
  'libdrm'
  'libxcb'
  'libxcomposite'
  'libxdamage'
  'libxext'
  'libxfixes'
  'libxkbcommon'
  'libxrandr'
  'libx11'
  'mesa'
  'nspr'
  'nss'
  'pango'
  'zlib-ng-compat'
)
optdepends=('libappindicator-gtk3: To show a system tray icon')
source=("${pkgname}-${pkgver}.deb::https://curseforge.overwolf.com/downloads/${_pkgname}-latest-linux.deb"
        "LICENSE")
sha256sums=('9b646515aee9b9adf904493779a6ad3124cdffd79d76689191035634afe8b171'
            '2ea1195615627a883e777f846f4fb356ad361d8edc7988055e2e8e51c3fddcc1')
options=(!strip !debug)
conflicts=('curseforge')

package() {
  # Create /usr/bin directory
  install -dm755 "${pkgdir}/usr/bin"

  # Extract the .deb file
  bsdtar -xf "${srcdir}/${pkgname}-${pkgver}.deb" -C "${srcdir}"

  # Extract data.tar.* into $pkgdir
  bsdtar -xf "${srcdir}/data.tar."* -C "${pkgdir}"

  # Install the custom license file
  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  # Create a symbolic link to the binary
  ln -sf "/opt/${_app}/curseforge" "${pkgdir}/usr/bin/curseforge"
}

# vim: set ts=2 sw=2 et: