From 66a51c40964b4e422f37bc196d4c6e52e57b5ae2 Mon Sep 17 00:00:00 2001 From: Claudia Pellegrino Date: Tue, 5 Jul 2022 09:30:20 +0200 Subject: [PATCH] Fix cmake breakage, thanks user @teawrecks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fix is to leave the original binaries in /opt/playdate-sdk/bin and create symlinks in /usr/bin that point to those binaries. For details, see user @teawrecks’s comment [1]. [1] https://aur.archlinux.org/packages/playdate-sdk#comment-872192 Suggested-by: teawrecks --- .SRCINFO | 2 +- PKGBUILD | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 025cada07b36..edd8cabb94ae 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = playdate-sdk pkgdesc = SDK for the Playdate console with Lua and C APIs, docs, and a simulator pkgver = 1.12.0 - pkgrel = 1 + pkgrel = 2 url = https://play.date/dev/ install = playdate-sdk.install arch = x86_64 diff --git a/PKGBUILD b/PKGBUILD index 459bf05ea791..8c0ff2f684b7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=playdate-sdk pkgver=1.12.0 -pkgrel=1 +pkgrel=2 pkgdesc='SDK for the Playdate console with Lua and C APIs, docs, and a simulator' arch=('x86_64') url='https://play.date/dev/' @@ -84,8 +84,8 @@ package() { "${pkgdir}/opt/${pkgname}" echo >&2 'Packaging executables' - mv -t "${pkgdir}/usr/bin" \ - "${pkgdir}/opt/${pkgname}/bin/"{pdc,pdutil} + ln -s -t "${pkgdir}/usr/bin" \ + "/opt/${pkgname}/bin/"{pdc,pdutil} install -D -m 755 -T \ "${srcdir}/playdate-simulator.shim" \ "${pkgdir}/usr/bin/PlaydateSimulator"