diff options
author | Zhang Hua | 2024-05-02 12:53:31 +0800 |
---|---|---|
committer | Zhang Hua | 2024-05-02 12:53:31 +0800 |
commit | f19998f9b23417cb96e5408e06db3dcfdba18b90 (patch) | |
tree | 03f87c180d978ae252967b095f18fd826956c3cc | |
parent | d31e2ae4e27ce57727c9dc1e339768d9d7e0e077 (diff) | |
download | aur-watt-toolkit-bin.tar.gz |
Fix striping makes Accelerator broken
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = watt-toolkit-bin pkgdesc = 一个开源跨平台的多功能Steam工具箱。 pkgver = 3.0.0.rc.8 - pkgrel = 1 + pkgrel = 2 url = https://steampp.net/ arch = x86_64 license = GPL-3.0-only @@ -10,6 +10,7 @@ pkgbase = watt-toolkit-bin conflicts = steam++ conflicts = watt-toolkit options = staticlibs + options = !strip source = watt-toolkit.desktop source = set-cap.hook source = watt-toolkit @@ -4,13 +4,13 @@ _tag=3.0.0-rc.8 pkgname=watt-toolkit-bin pkgdesc=一个开源跨平台的多功能Steam工具箱。 pkgver=${_tag//-/.} -pkgrel=1 +pkgrel=2 arch=('x86_64') url=https://steampp.net/ license=('GPL-3.0-only') provides=('steam++' 'watt-toolkit') conflicts=('steam++' 'watt-toolkit') -options=('staticlibs') +options=('staticlibs' '!strip') source=( 'watt-toolkit.desktop' 'set-cap.hook' @@ -50,8 +50,12 @@ package(){ cp -r "${srcdir}/assemblies" "${pkgdir}/usr/lib/watt-toolkit" cp -r "${srcdir}/native" "${pkgdir}/usr/lib/watt-toolkit" cp -r "${srcdir}/modules" "${pkgdir}/usr/lib/watt-toolkit/modules" + # Fix permission find "${pkgdir}/usr/lib/watt-toolkit" -type f -exec chmod 644 {} \; find "${pkgdir}/usr/lib/watt-toolkit/modules" -type f -name 'Steam++.*' -exec chmod 755 {} \; + # Strip binary + find "${pkgdir}/usr/lib/watt-toolkit" -type f -name '*.dll' -exec strip $STRIP_STATIC {} \; + find "${pkgdir}/usr/lib/watt-toolkit" -type f -name '*.so' -exec strip $STRIP_SHARED {} \; install -Dm644 "${srcdir}/Icons/Watt-Toolkit.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/watt-toolkit.png" install -Dm755 "${srcdir}/script/environment_check.sh" "${pkgdir}/usr/lib/watt-toolkit/script/environment_check.sh" install -Dm755 "${srcdir}/watt-toolkit" "${pkgdir}/usr/bin/watt-toolkit" |