summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas18182020-12-03 20:47:57 +0100
committerLukas18182020-12-03 20:47:57 +0100
commitb1e099de15f2e525d92c3bd2dad1fcba4dcc65f3 (patch)
treef19a04eab641543f292f098c9b6fdfa10e5f8f34
parent41c21f7294c81f6bab203a8da28a21b05873f9e6 (diff)
downloadaur-b1e099de15f2e525d92c3bd2dad1fcba4dcc65f3.tar.gz
fix depends; add provides
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD15
2 files changed, 11 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3d76407ea9c..b223fb5c1f0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,7 +8,9 @@ pkgbase = gog-ftl
arch = x86_64
license = custom
makedepends = lgogdownloader
- depends = sdl2
+ depends = lib32-libglvnd
+ depends = lib32-alsa-lib
+ provides = ftl=1.6.12
source = ftl_advanced_edition.sh_1.6.12.sh::gogdownloader://1207659102/en3installer0
source = ftl.desktop
sha256sums = aac8bdcbbf47b823f77889e27be77d52dfde041c4977ec375176a2a52063e0c9
diff --git a/PKGBUILD b/PKGBUILD
index e5bee91adee..278f68658ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,8 +9,9 @@ pkgdesc="Spaceship simulation roguelike-like (GOG version). Take your ship and c
url="https://www.gog.com/game/faster_than_light"
license=('custom')
arch=('i686' 'x86_64')
-makedepends=('lgogdownloader')
-depends=('sdl2')
+makedepends=('lgogdownloader' 'sed')
+provides=("ftl=$pkgver")
+depends=('lib32-libglvnd' 'lib32-alsa-lib' )
source=("ftl_advanced_edition.sh_${pkgver}.sh::gogdownloader://1207659102/en3installer0"
"ftl.desktop")
sha256sums=('aac8bdcbbf47b823f77889e27be77d52dfde041c4977ec375176a2a52063e0c9'
@@ -20,23 +21,23 @@ DLAGENTS+=('gogdownloader::/usr/bin/lgogdownloader --download-file=%u -o %o')
prepare(){
sed -i 's/^here=.*$/here=\/opt\/gog-ftl\ncd "$here"/' "${srcdir}/data/noarch/game/data/FTL"
- sed -i 's/^command=.*$/command=FTL/' "${srcdir}/data/noarch/game/data/FTL"
+ sed -i 's/^command=.*$/command=FTL/' "${srcdir}/data/noarch/game/data/FTL"
}
package(){
# Install game
mkdir -p "${pkgdir}/opt/$pkgname"
- cp -r "${srcdir}/data/noarch/game/data" -T "${pkgdir}/opt/$pkgname"
+ mv "${srcdir}/data/noarch/game/data" -T "${pkgdir}/opt/$pkgname"
chmod -R 644 "${pkgdir}/opt/$pkgname/"
chmod 755 "${pkgdir}/opt/$pkgname" "${pkgdir}/opt/$pkgname/FTL" "${pkgdir}/opt/$pkgname/FTL.amd64" "${pkgdir}/opt/$pkgname/FTL.x86"
# Desktop integration
- install -Dm 644 "${srcdir}/data/noarch/game/data/exe_icon.bmp" \
+ install -Dm 644 "${pkgdir}/opt/$pkgname/exe_icon.bmp" \
"${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -Dm 644 "${srcdir}/data/noarch/docs/End User License Agreement.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 "${srcdir}/ftl.desktop" \
- "${pkgdir}/usr/share/applications/ftl.desktop"
- install -dm 755 "${pkgdir}/usr/bin/"
+ "${pkgdir}/usr/share/applications/ftl.desktop"
+ install -dm 755 "${pkgdir}/usr/bin/"
mv "${pkgdir}/opt/${pkgname}/FTL" "${pkgdir}/usr/bin/ftl"
}