i think i have it mostly figured out, and trying to make a package for "DevilutionX" but. how do i define a location to extract the source archive, have it make a build directory , change to the build director then tell cmake to grab from the previous directory (source folder) then pas this Make Arg. ? "make -j$(nproc)" (sorry im just new to things and slowly learning. )
trying to understand the package.mk template
-
Cael -
July 24, 2019 at 4:46 PM -
Thread is Unresolved
-
-
Post the package you got so far.
-
Code
Display More# SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2018-present Team LibreELEC (LibreELEC – Just enough OS for KODI) PKG_NAME="DevilutionX" PKG_VERSION="b2f3588" PKG_SHA256="[sha256 hash of the source file, downloaded from PKG_URL]" PKG_ARCH="arm" PKG_LICENSE="Unliscense" PKG_SITE="https://github.com/diasurgical/devilutionX" PKG_URL="https://github.com/diasurgical/devilutionX/archive/master.zip" PKG_MAINTAINER="diasurgical" PKG_DEPENDS_TARGET="libsdl2 libsdl2-mixer libsdl2-ttf libsodium-dev cmake g++" PKG_SECTION="emulation" PKG_SHORTDESC="Diablo for Modern Systems" PKG_LONGDESC="Opensource Diablo for Modern operating systems and platforms" PKG_TOOLCHAIN="auto" PKG_CMAKE_OPTS_TARGET="-DBINARY_RELEASE=ON # " #pre_configure_target() { # do something, or drop it #} # see LibreELEC.tv/readme.md at master · LibreELEC/LibreELEC.tv · GitHub for more # take a look to other packages, for inspiration
i havent put in the SHA256(havent calculated it) and im not certain if cmake/g++ need to be added to the package (as its a compile dependency not a execution dependency) -
-
- Official Post
Code
Display MorePKG_NAME="DevilutionX" PKG_VERSION="b2f358874705598ec139f290b21e340c73d250f6" PKG_SHA256="somehash" PKG_ARCH="arm" PKG_LICENSE="Unliscense" PKG_SITE="https://github.com/diasurgical/devilutionX" PKG_URL="https://github.com/diasurgical/devilutionX/archive/${PKG_VERSION}.tar.gz" PKG_DEPENDS_TARGET="toolchain libsdl2 libsdl2-mixer libsdl2-ttf libsodium-dev cmake g++" PKG_LONGDESC="Opensource Diablo for Modern operating systems and platforms" PKG_CMAKE_OPTS_TARGET="-DBINARY_RELEASE=ON"
no idea if this builds, just that you have the basic layout
PROJECT=RPi DEVICE=RPi2 ARCH=arm scripts/build_mt DevilutionX
should build it
and pls use the code tag if you post some snippet or it gets butchered
-
Code
Display MorePKG_NAME="DevilutionX" PKG_VERSION="b2f358874705598ec139f290b21e340c73d250f6" PKG_SHA256="somehash" PKG_ARCH="arm" PKG_LICENSE="Unliscense" PKG_SITE="https://github.com/diasurgical/devilutionX" PKG_URL="https://github.com/diasurgical/devilutionX/archive/${PKG_VERSION}.tar.gz" PKG_DEPENDS_TARGET="toolchain libsdl2 libsdl2-mixer libsdl2-ttf libsodium-dev cmake g++" PKG_LONGDESC="Opensource Diablo for Modern operating systems and platforms" PKG_CMAKE_OPTS_TARGET="-DBINARY_RELEASE=ON"
no idea if this builds, just that you have the basic layout
PROJECT=RPi DEVICE=RPi2 ARCH=arm scripts/build_mt DevilutionX
should build it
and pls use the code tag if you post some snippet or it gets butchered
under linux instructions i has this small requirement
GitHub - diasurgical/devilutionX: Diablo build for modern operating systemsthats the last thing im hung on how to set in the template ohh and the -DBINARY_RELEASE=ON this tells it to make teh release binary as by default it builds the Debug version requiring ASam
-
Did you tried package above? Because most build things are done automatically and user doesn't need to cover it.
-
Did you tried package above? Because most build things are done automatically and user doesn't need to cover it.
it failed at needing libsodium-dev hmmm now its now a matter of i guess adding this in before continuing. (soled that matter)
-snip- seems despite passing the correct make arg im guessing its breaking when compiling in the source root directory (hence why in the github readme they tell you to use a build folder)