summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 81bf22350a55a59d07c93fb33efebd8ecf50f917 (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: Can Celasun <can[at]dcc[dot]im>

pkgname=paradox-launcher
pkgver=1.0_beta_24
pkgrel=2
pkgdesc="Paradox Interactive Game Launcher"
arch=('x86_64')
url="https://play.paradoxplaza.com/"
license=('custom')
depends=("libxi" "xdg-utils" "freetype2" "libgl")
optdepends=('firejail: launch a sandboxed instance')
source=(${pkgname}-${pkgver}.zip::https://launcher.paradoxplaza.com/linux_launcher
        ${pkgname}
        ${pkgname}.desktop
        ${pkgname}.local
        ${pkgname}.profile)
sha256sums=('7b20c104d20daf418cd479275de0df1d3f4e08fa36faf6aba08ea0a321aeeaa5'
            '481ead5d9a16b532c93589c036a44b41ca7d85193c0f0158fc5ec957fc1e2c46'
            '6687c73d211ae7e50a1658e7dd7900a5f5777fe54df3a89e4f96a5b8dc210a11'
            '830972b3e79a85972ddac50e550458238b755c170dbd2370e22fb6cb283fa634'
            '42e63fa3fb19d5e0be940d4b697ab688a958f709580cc3681279f98fc299e9b9')

package() {
  cd "${srcdir}"
  mkdir -p "${pkgdir}"/opt/${pkgname}
  mkdir -p "${pkgdir}"/usr/bin
  cp -R "${srcdir}"/data/ "${pkgdir}"/opt/${pkgname} -R

  install -m644 -D "${pkgdir}/opt/${pkgname}/data/desktop/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  install -m644 -D "${pkgdir}/opt/${pkgname}/data/EULA" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -m644 -D "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  install -m755 -D "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"

  # firejail profile
  install -m644 -D "$srcdir/$pkgname.local" "$pkgdir/etc/firejail/$pkgname.local"
  install -m644 -D "$srcdir/$pkgname.profile" "$pkgdir/etc/firejail/$pkgname.profile"
}