Commit b064eaaa authored by sm's avatar sm

Improve PKGBUILD

parent fe06374a
......@@ -148,7 +148,19 @@ public:
dump(0);
}
protected:
/** The theme layout.
* This function can only be called if the widget is already added to a layout.
*
* Subclasses that call this function must include themelayout.h header file.
* @return The theme layout.
*/
ThemeLayout& themeLayout();
/** The constant theme layout.
* This function can only be called if the widget is already added to a layout.
*
* Subclasses that call this function must include themelayout.h header file.
* @return The constant theme layout.
*/
const ThemeLayout& themeLayout() const;
/** Signal that widget was added to a layout.
* When the theme widget tree is added to the theme layout this function
......
......@@ -19,10 +19,6 @@
#include "themecontainerwidget.h"
#include "themelayout.h"
#include "util/ccsave.h"
namespace stmg
{
......
......@@ -19,9 +19,6 @@
#include "widgets/actionsboxthwidgetfactory.h"
#include "themelayout.h"
namespace stmg
{
......
# Maintainer: @STMMI_PACKAGER_FULLNAME@ <@STMMI_PACKAGER_EMAIL@>
pkgname=stmm-games
_name=stmm-games
_commit=@STMMI_COMMIT_ID@
pkgver=@STMMI_DEBIAN_SRC_VERSION@
pkgrel=@STMMI_DEBIAN_REVISION@
pkgdesc="C++ 2D games library"
url='https://www.efanomars.com/libraries/stmm-games/'
packager=@STMMI_PACKAGER_FULLNAME@
url='https://www.efanomars.com/libraries/${_name}'
arch=('x86_64')
license=('GPL3')
depends=('stmm-input' 'gtkmm' 'librsvg' 'libxml++2.6')
makedepends=('cmake' 'gcc' 'doxygen' 'graphviz' 'python')
optdepends=()
_name=stmm-games
source=('git+https://gitlab.com/efanomars/stmm-games.git')
#provides=("${_name}")
#replaces=("${_name}")
#conflicts=("${_name}")
source=('git+https://gitlab.com/efanomars/${_name}.git#commit=${_commit}')
sha512sums=('SKIP')
build() {
cd "${srcdir}/${_name}"
./scripts/install_stmm-games-all.py -b=Release -s=Off -t=Off -d=Off --installdir="/usr" --no-install --no-sudo
./scripts/install_${_name}-all.py -b=Release -s=Off -t=Off -d=Off --installdir="/usr" --no-install --no-sudo
}
package() {
cd "${srcdir}/${_name}"
./scripts/priv/dd_install_stmm-games-all.py -b=Release -s=Off -t=Off -d=Off --installdir="/usr" --destdir="${pkgdir}" --no-configure --no-make --no-sudo
./scripts/priv/dd_install_${_name}-all.py -b=Release -s=Off -t=Off -d=Off --installdir="/usr" --destdir="${pkgdir}" --no-configure --no-make --no-sudo
}
......@@ -48,6 +48,8 @@ import email.utils
# exec(compile(source=open(sTempX1X2X3).read(), filename=sTempX1X2X3, mode="exec"))
g_sProjectArchDir = "arch_" + g_sSourceProjectName
g_aMonthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
g_sMonthNames = ""
for sMonthName in g_aMonthNames:
......@@ -102,9 +104,10 @@ except KeyError:
#==============================================================================
# sSubPrjPath: any of the subproject directories
def transformFile(sFileName, sSourceFileDir, sDestFileDir, sPrivScriptDirPath, sSubPrjPath\
def transformFile(sFileName, sSourceFileDir, sDestFileDir, sPrivScriptDirPath, sSubPrjPath
, sDebSrcVersion, nDebRevision, sChangelogDate
, sAuthorFullName, sAuthorEMail):
, sAuthorFullName, sAuthorEMail
, sCommitId):
bDoFileName = ("@" in sFileName)
if bDoFileName:
(oFd1, sTmpPath1) = mkstemp(prefix=g_sSourceProjectName + "_1", text=True)
......@@ -125,6 +128,8 @@ def transformFile(sFileName, sSourceFileDir, sDestFileDir, sPrivScriptDirPath, s
sParams = sParams + ' -D STMMI_PACKAGER_EMAIL="' + g_sPackagerEMail + '"'
sParams = sParams + ' -D STMMI_AUTHOR_FULLNAME="' + sAuthorFullName + '"'
sParams = sParams + ' -D STMMI_AUTHOR_EMAIL="' + sAuthorEMail + '"'
#
sParams = sParams + ' -D STMMI_COMMIT_ID="' + sCommitId + '"'
subprocess.check_call("cmake " + sParams + " -P " + sPrivScriptDirPath + "/debian_src_versions.cmake", shell=True)
if bDoFileName:
os.close(oFd1)
......@@ -199,6 +204,8 @@ def main():
, default="", dest="sDebSrcVersion")
oParser.add_argument("--revision", help="the arch revision number (Default: 1)", metavar='REVISION'\
, default="1", dest="sDebRevision")
oParser.add_argument("--commitid", help="The git commit id", metavar='COMMITID'\
, default="", dest="sCommitId")
oArgs = oParser.parse_args()
sDebSrcVersion = oArgs.sDebSrcVersion
......@@ -242,8 +249,7 @@ def main():
os.chdir(sParentDirPath)
sProjectArchDir = "arch_" + g_sSourceProjectName
os.mkdir(sProjectArchDir, 0o775)
os.mkdir(g_sProjectArchDir, 0o775)
#os.chdir(g_sSourceProjectName)
aDirOrigFileNames = os.listdir(sArchOrigPath)
for sEntry in aDirOrigFileNames:
......@@ -251,11 +257,12 @@ def main():
if os.path.isdir(sEntryPath):
shutil.copytree(sEntryPath, sEntry, copy_function=shutil.copy)
elif sEntry[-3:] == ".in":
transformFile(sEntry[:-3], sArchOrigPath, sProjectArchDir\
transformFile(sEntry[:-3], sArchOrigPath, g_sProjectArchDir
, sPrivScriptDirPath, sSubPrjPath, sDebSrcVersion, nDebRevision, sChangelogDate
, sAuthorFullName, sAuthorEMail)
, sAuthorFullName, sAuthorEMail
, oArgs.sCommitId)
else:
shutil.copyfile(sEntryPath, sProjectArchDir + "/" + sEntry)
shutil.copyfile(sEntryPath, g_sProjectArchDir + "/" + sEntry)
if __name__ == "__main__":
main()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment