mbedtls new package

This commit is contained in:
Rmys
2021-11-09 21:25:15 +03:00
parent 6519d53c35
commit b360fea659
8 changed files with 452 additions and 69 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
#pisitools.dosed('CMakeLists.txt', '"cmake"', '"lib/cmake"')
shelltools.system("mkdir build")
shelltools.cd("build")
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
-DMBEDTLS_FATAL_WARNINGS=OFF \
-DINSTALL_MBEDTLS_HEADERS=ON", sourceDir="..")
def build():
cmaketools.make("-C build")
def install():
cmaketools.rawInstall("DESTDIR=%s -C build" % get.installDIR())
pisitools.dodoc("ChangeLog", "LICENSE", "README*")