diff options
author | Etaash Mathamsetty | 2023-01-19 12:27:30 -0500 |
---|---|---|
committer | Etaash Mathamsetty | 2023-01-19 12:27:30 -0500 |
commit | 075d1cf69dd11b9b8861ee7b78a340eb34bfc790 (patch) | |
tree | 7ecaa6c30cea46676a184ffb038003fa2dd99794 /PKGBUILD | |
parent | eaf9c589a5d9d57d0e71e687e7cffc30740bfbcf (diff) | |
download | aur-flashpoint-launcher-bin.tar.gz |
fix package (again)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -3,7 +3,7 @@ pkgname=flashpoint-launcher-bin pkgver=10.1.7 -pkgrel=2 +pkgrel=3 _dataver=1012 pkgdesc="Launcher for BlueMaxima's Flashpoint" arch=('x86_64') @@ -25,28 +25,33 @@ conflicts=('flashpoint-bin' 'flashpoint-launcher-git') source=("flashpoint-data.7z::https://bluepload.unstable.life/selif/flashpoint-${_dataver}-linux-x64.7z" "flashpoint.deb::https://github.com/FlashpointProject/launcher/releases/download/${pkgver}/Flashpoint-${pkgver}_linux-amd64.deb") noextract=("flashpoint-data.7z") -backup=('opt/Flashpoint/config.json' - 'opt/Flashpoint/preferences.json') +backup=('opt/Flashpoint/Launcher/config.json' + 'opt/Flashpoint/Launcher/preferences.json') sha512sums=('0b521337d40169ab502f433a107d9b7b7ca73512fb99b27ca547240a251f75e931ca8a6b4450b0dec610b14cb1d1ae1fc9599bb82e757d6cfa79cd76bf5fabe8' '4e18eec49ff88fcf63177074afc638639cd26b980d6ac54d1b466c31150557a483398a4f9049496d84b3b9e5d511feb6204550f91ce11319b66f67959c53766a') package(){ echo "Extracting Data files ..." mkdir -vp "${pkgdir}/opt/Flashpoint/" - echo "Extracting Flashpoint data... (This will take some time)" - bsdtar -xf flashpoint-data.7z -C "${pkgdir}/opt/Flashpoint/" Data/* FPSoftware/* Server/* Plugins/* Legacy/* # rm ${srcdir}/flashpoint.7z # cp -rp ${srcdir} ${pkgdir}/opt/Flashpoint/ echo "Extracting package data ..." tar xf data.tar.xz -C "${pkgdir}" + mkdir -vp "${pkgdir}/opt/Flashpoint/Launcher" + cd "${pkgdir}/opt/Flashpoint" + mv $(ls | grep -v Launcher) "${pkgdir}/opt/Flashpoint/Launcher/" + cd "${srcdir}" + + echo "Extracting Flashpoint data... (This will take some time)" + bsdtar -xf flashpoint-data.7z -C "${pkgdir}/opt/Flashpoint/" Data/* FPSoftware/* Server/* Plugins/* Legacy/* echo "Creating Launcher..." mkdir -vp "${pkgdir}/usr/bin" printf \ "#!/usr/bin/env bash\n\n cd /opt/Flashpoint/\n - /opt/Flashpoint/flashpoint-launcher \$@" > "${pkgdir}/usr/bin/flashpoint-launcher" + /opt/Flashpoint/Launcher/flashpoint-launcher \$@" > "${pkgdir}/usr/bin/flashpoint-launcher" chmod -v 777 "${pkgdir}/usr/bin/flashpoint-launcher" # echo Linking launcher # mkdir -vp ${pkgdir}/usr/bin @@ -59,7 +64,7 @@ package(){ # install -dv ${pkgdir}/usr/share/licenses/ echo "Installing Licenses..." mkdir -vp "${pkgdir}/usr/share/licenses/" - cp -r "${pkgdir}/opt/Flashpoint/licenses/" "${pkgdir}/usr/share/licenses/Flashpoint" + cp -r "${pkgdir}/opt/Flashpoint/Launcher/licenses/" "${pkgdir}/usr/share/licenses/Flashpoint" # echo Making config and preferences writable by all ... # touch "${pkgdir}/opt/Flashpoint/extConfig.json" |