# Maintainer: Dmytro Meleshko _pkgname=cc-map-editor pkgname="${_pkgname}-bin" pkgver=1.3.0 pkgrel=1 pkgdesc="Map Editor for the game CrossCode" arch=('any') url='https://github.com/CCDirectLink/crosscode-map-editor' license=('custom:MIT') depends=(electron) makedepends=(asar npm imagemagick) provides=("${_pkgname}") conflicts=("${_pkgname}") options=(!strip) _appimage_file="${_pkgname}-${pkgver}-linux.AppImage" source=("https://github.com/CCDirectLink/crosscode-map-editor/releases/download/v${pkgver}/${_appimage_file}" "${pkgname}-LICENSE::https://github.com/CCDirectLink/crosscode-map-editor/raw/v${pkgver}/LICENSE" "${pkgname}.patch") noextract=("${_appimage_file}") sha256sums=('85c5e5c6c17cf8c8b53489a04f8e2f0faf63c11e969306ee32a466e9a49a1270' 'a406579cd136771c705c521db86ca7d60a6f3de7c9b5460e6193a2df27861bde' '11fde0a67b346874dabb8241393ead51723f3b4e9b75174c52a4b32e79ea9ccd') prepare() { mkdir -p "${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}" msg2 "Extracting ${_appimage_file}..." chmod +x "${srcdir}/${_appimage_file}" # extracts the AppImage contents into a directory called `squashfs-root`, see # "${srcdir}/${_appimage_file}" --appimage-extract 2>/dev/null msg2 "Generating ${_pkgname}.sh..." cat > "${_pkgname}.sh" < "${_pkgname}.desktop" <