@Megameneer
Thanks for your help! I just pushed a commit with the changes. It should now supports ARMv6h and ARMv7h architectures. If there's anything, just let me know.
(And here's a tip! Next time you want to share code on a AUR package page, please use GitHub's Gist (https://gist.github.com/) or another pastebin website. It helps keeping comments clean.)
Search Criteria
Package Details: pico-8 0.2.6b-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/pico-8.git (read-only, click to copy) |
---|---|
Package Base: | pico-8 |
Description: | A fantasy console for making, sharing and playing tiny games and other computer programs. |
Upstream URL: | http://www.lexaloffle.com/pico-8.php |
Licenses: | custom:commercial |
Provides: | pico8 |
Submitter: | scottmada |
Maintainer: | imcb (scottmada, joe084) |
Last Packager: | imcb |
Votes: | 15 |
Popularity: | 0.007136 |
First Submitted: | 2016-09-22 21:42 (UTC) |
Last Updated: | 2024-02-28 15:58 (UTC) |
Dependencies (3)
- curl (curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR)
- sdl2AUR (sdl2-compat-gitAUR, sdl2-gitAUR, sdl2-compat)
Required by (0)
Sources (5)
Latest Comments
« First ‹ Previous 1 2 3
scottmada commented on 2016-08-02 19:56 (UTC)
Megameneer commented on 2016-08-02 16:58 (UTC)
PICO-8 is also available for the Raspberry Pi. That makes it possible for PICO-8 to run on armv6h and armv7h architectures. I don't know if it's also available for 64-bit ARM. Here is my adapted PKGBUILD to also support ARM 32 bit:
# Maintainer: Adam Scott <ascott.ca@gmail.com>
pkgname='pico8-bin'
_pkgname='pico8'
pkgver='0.1.8'
pkgrel=1
pkgdesc="PICO-8 is a fantasy console for making, sharing and playing tiny games and other computer programs."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="http://www.lexaloffle.com/pico-8.php"
license=('custom:commercial')
depends=('glibc')
makedepends=('unzip')
# Zip uses other terms for the architecture
[ "${CARCH}" = "i686" ] && _platform="i386"
[ "${CARCH}" = "x86_64" ] && _platform="amd64"
[ "${CARCH}" = "armv6h" ] && _platform="arm"
[ "${CARCH}" = "armv7h" ] && _platform="arm"
_filename="pico-8_${pkgver}_${_platform}"
# Hardcodes the source file for the .SRCINFO file
source_i686=("local://pico-8_${pkgver}_i386.zip")
source_x86_64=("local://pico-8_${pkgver}_amd64.zip")
source_armv6h=("local://pico-8_${pkgver}_arm.zip")
source_armv7h=("local://pico-8_${pkgver}_arm.zip")
sha256sums_i686=('ea5dedfb078e29f2f2e635708cace383a75a60fb864414b8ee1eb1e2bdcfc041')
sha256sums_x86_64=('6e851e40883e03bb94369b9d25bec3e3baa21bc7d18e0063937b5bb19903ce8a')
sha256sums_armv6h=('e90bd42f2fe7767506415111465f6df645d2903aab8c1dc571139dfbb6fa9f76')
sha256sums_armv7h=('e90bd42f2fe7767506415111465f6df645d2903aab8c1dc571139dfbb6fa9f76')
noextract=("pico-8_${pkgver}_i386.zip" "pico-8_${pkgver}_amd64.zip" "pico-8_${pkgver}_arm.zip")
prepare () {
# Unzips the local zip
unzip -o -q "${_filename}.zip"
# Change directory to extracted folder
cd "pico-8"
# Changes licence filename in order to comply conventions
mv "license.txt" "LICENSE"
mv "lexaloffle-pico8.png" "pico8.png"
}
package () {
# Change directory to extracted folder
cd "${srcdir}/pico-8"
# Creates variables storing paths
local _wanteddestdir="/usr/share/${_pkgname}"
local _destdir="${pkgdir}/${_wanteddestdir}"
local _wantedbindir="/usr/bin"
local _bindir="${pkgdir}/${_wantedbindir}"
local _wantedmimedir="/usr/share/mime/packages"
local _mimedir="${pkgdir}/${_wantedmimedir}"
local _wantedappsdir="/usr/share/applications"
local _appsdir="${pkgdir}/${_wantedappsdir}"
local _wantedpixmapsdir="/usr/share/icons/hicolor/128x128/apps"
local _pixmapsdir="${pkgdir}/${_wantedpixmapsdir}"
# Creates local variables storing filenames
local _pico8_license="LICENSE"
local _pico8_bin="pico8"
local _pico8_dyn="pico8_dyn"
local _pico8_dat="pico8.dat"
local _pico8_txt="pico8.txt"
local _pico8_mime="pico8.xml"
local _pico8_desktop="pico8.desktop"
local _pico8_icon="pico8.png"
# Makes fakeroot folders
mkdir -p "${_destdir}"
mkdir -p "${_bindir}"
mkdir -p "${_appsdir}"
mkdir -p "${_pixmapsdir}"
# Creates a MIME configuration file
cat <<< "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<mime-info xmlns=\"http://www.freedesktop.org/standards/shared-mime-info\">
<mime-type type=\"application/pico8\">
<comment>pico-8 file</comment>
<magic priority=\"50\">
<match type=\"string\" value=\"pico-8 cartridge\" offset=\"0\"/>
</magic>
<glob-deleteall/>
<glob pattern=\"*.p8\"/>
</mime-type>
</mime-info>" > "${_pico8_mime}"
# Creates a desktop entry file
cat <<< "[Desktop Entry]
Type=Application
Version=1.0
Name=PICO-8
Comment=${pkgdesc}
Exec=/usr/bin/${_pico8_bin}
MimeType=application/pico8
Icon=${_pico8_bin}
Terminal=false
Categories=Development;Game" > "${_pico8_desktop}"
# Installs the extracted files
install -Dm644 "${_pico8_license}" "${pkgdir}/usr/share/licenses/${pkgname}/${_pico8_license}"
install -Dm755 "${_pico8_bin}" "${_destdir}/${_pico8_bin}"
install -Dm644 "${_pico8_dyn}" "${_destdir}/${_pico8_dyn}"
install -Dm644 "${_pico8_dat}" "${_destdir}/${_pico8_dat}"
install -Dm644 "${_pico8_txt}" "${_destdir}/${_pico8_txt}"
install -Dm644 "${_pico8_mime}" "${_mimedir}/${_pico8_mime}"
install -Dm644 "${_pico8_desktop}" "${_appsdir}/${_pico8_desktop}"
install -Dm644 "${_pico8_icon}" "${_pixmapsdir}/${_pico8_icon}"
# Links the installed binary to /usr/bin
ln -s "/usr/share/${_pkgname}/pico8" "${_bindir}/pico8"
}
scottmada commented on 2016-06-29 20:18 (UTC)
Hi @josefnpat, thanks for the help! I updated pico8-bin to 0.1.8.
I did not know that the pkgrel resets on a new version release. It makes a lot of sense. I realised that when I diffed your MAKEPKG with mine. Thanks!
You'll find that the MAKEPKG file is not the same as yours for 2 reasons: First, I realised that you forgot to change the i386 sum in the file. Also, a new file was added on the Linux build, pico8_dyn.
Thanks for flagging the package and your help!
josefnpat commented on 2016-06-29 01:13 (UTC)
Here's my SHA256SUMs for 32 and 64 bit:
6e851e40883e03bb94369b9d25bec3e3baa21bc7d18e0063937b5bb19903ce8a pico-8_0.1.8_amd64.zip
ea5dedfb078e29f2f2e635708cace383a75a60fb864414b8ee1eb1e2bdcfc041 pico-8_0.1.8_i386.zip
And here's my new version of the MAKEPKG: http://pastebin.com/raw/Pc1WmiPV
Other than the version change and a pkgrel change, a file was also renamed (pico8.txt to pico-8.txt)
josefnpat commented on 2016-06-29 01:09 (UTC)
@scottmada thanks so much!
0.1.8 has been released. Here's my SHA256SUM:
6e851e40883e03bb94369b9d25bec3e3baa21bc7d18e0063937b5bb19903ce8a pico-8_0.1.8_amd64.zip
scottmada commented on 2016-06-02 18:22 (UTC) (edited on 2016-06-02 18:23 (UTC) by scottmada)
Hi @josefnpat! I'm happy to see that I did not make this package only for myself.
And I just updated the package to pico8-bin-0.1.6-2. *.p8 files are now associated with pico8.
josefnpat commented on 2016-05-31 06:16 (UTC)
Thanks for this! Any chance to get *.p8 files associated with this, or does that conflict?
Pinned Comments
imcb commented on 2022-09-25 12:23 (UTC) (edited on 2022-12-13 21:46 (UTC) by imcb)
Remember to download the zip file and move it to the directory you're building the package in (for paru, ~/.cache/paru/clone/pico-8).