From 1de20a8e7c0b8df64d099376c2553ce146ac3226 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 22 Jul 2018 13:57:27 +0200 Subject: Add some commonly needed optdepends --- PKGBUILD | 20 +++++++++++++------- paradox-launcher.profile | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 81bf223..1bb663d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,4 +1,5 @@ # Maintainer: Can Celasun +# Contributor: aqua pkgname=paradox-launcher pkgver=1.0_beta_24 @@ -8,7 +9,11 @@ arch=('x86_64') url="https://play.paradoxplaza.com/" license=('custom') depends=("libxi" "xdg-utils" "freetype2" "libgl") -optdepends=('firejail: launch a sandboxed instance') +optdepends=('firejail: launch a sandboxed instance' + 'lib32-mesa: 32-bit game support' + 'lib32-util-linux: 32-bit game support' + 'lib32-libpulse: 32-bit game sound support' + 'lib32-alsa-plugins: 32-bit game sound support') source=(${pkgname}-${pkgver}.zip::https://launcher.paradoxplaza.com/linux_launcher ${pkgname} ${pkgname}.desktop @@ -26,12 +31,13 @@ package() { 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}" + install -Dm644 "${pkgdir}/opt/${pkgname}/data/desktop/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + install -Dm644 "${pkgdir}/opt/${pkgname}/data/EULA" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -Dm755 "${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" + install -Dm644 "$srcdir/$pkgname.local" "$pkgdir/etc/firejail/$pkgname.local" + install -Dm644 "$srcdir/$pkgname.profile" "$pkgdir/etc/firejail/$pkgname.profile" } + diff --git a/paradox-launcher.profile b/paradox-launcher.profile index 03a2606..c9adb3a 100644 --- a/paradox-launcher.profile +++ b/paradox-launcher.profile @@ -3,4 +3,4 @@ include /etc/firejail/globals.local # This file is overwritten during software install. # Persistent customizations should go in a .local file. -include /etc/firejail/generic-game-networked.local +include /etc/firejail/paradox-launcher.local -- cgit v1.2.1