new package

This commit is contained in:
Erkan IŞIK
2025-12-25 17:31:44 +03:00
parent d13e89ddbe
commit 18edc61c1b
2 changed files with 85 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("Ninja \
no-dev \
CMAKE_BUILD_TYPE=None \
CMAKE_INSTALL_PREFIX=/usr \
BUILD_SHARED_LIBS=ON \
NNG_ENABLE_TLS=ON \
NNG_TLS_ENGINE=wolf \
NNG_ENABLE_DOC=OFF \
NNG_TESTS=OFF", sourceDir="..")
def build():
shelltools.cd("build")
cmaketools.make()
def install():
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())