transmission bittorrent client.

This commit is contained in:
4fury-c3440d8
2021-10-14 06:10:11 +03:00
parent ad59b13f49
commit ea67d544a2
8 changed files with 331 additions and 16 deletions
+12 -8
View File
@@ -2,21 +2,25 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
import os
#WorkDir = "miniupnpc-1.9"
def setup():
shelltools.system('cmake -L -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr .')
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure('-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -L', sourceDir = '..')
def build():
autotools.make()
pythonmodules.compile(pyVer = '3')
shelltools.cd("build")
cmaketools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pythonmodules.install(pyVer = '3')
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())