diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2021-03-24 20:36:16 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2021-03-24 20:36:16 -0700 |
commit | 685d548e148ff0eda5b176cbfc88513c443a24fd (patch) | |
tree | 811f8f853604c98810faba89f9d8fabeb91d7919 | |
parent | Revert /usr/share asset path back to /usr/lib. Hardcoded paths are evil. (diff) | |
download | endless-sky-685d548e148ff0eda5b176cbfc88513c443a24fd.tar.xz |
PKGBUILD formatting
Fix lto
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -17,7 +17,7 @@ makedepends=(scons) optdepends=('endless-sky-high-dpi: high resolution graphics assets' 'endless-sky-editor: map editor') license=('GPL3' 'CCPL' 'custom:public domain') -pkgdesc="A space exploration and combat game similar to Escape Velocity" +pkgdesc="A sandbox-style space exploration and combat game" source=("$pkgname-$pkgver.tar.gz::https://github.com/endless-sky/endless-sky/archive/v${pkgver}.tar.gz" ${pkgname}.desktop 0001-fix-Add-missing-string-include.patch) @@ -33,8 +33,8 @@ prepare() { build() { cd "$pkgname-$pkgver" - export CFLAGS="$CFLAGS -O3 -flto=4 -fPIE" - export CXXFLAGS="$CXXFLAGS -O3 -flto=4 -fPIE" + export CFLAGS="$CFLAGS -O3 -flto=auto -fPIE" + export CXXFLAGS="$CXXFLAGS -O3 -flto=auto -fPIE" export LDFLAGS="$LDFLAGS,-pie" scons "${MAKEFLAGS}" } @@ -43,7 +43,7 @@ build() { package() { cd "$pkgname-$pkgver" - # Install executable + # binary install -Dm755 endless-sky "${pkgdir}/usr/bin/endless-sky" # resources @@ -58,7 +58,7 @@ package() { # icons for res in 16 22 24 32 48 128 256 512; do install -Dm644 \ - "${srcdir}/${pkgname}-${pkgver}/icons/icon_${res}x${res}.png" \ + "icons/icon_${res}x${res}.png" \ "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${pkgname}.png" done |