Fix cmake breakage, thanks user @teawrecks

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
This commit is contained in:
Claudia Pellegrino 2022-07-05 09:30:20 +02:00
parent d43d636e70
commit 66a51c4096
No known key found for this signature in database
GPG key ID: 7AA67DE7B73139CE
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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"