davs2 add to repo

This commit is contained in:
idriskalp
2020-01-12 01:49:57 +03:00
parent 3d5f6d9fe7
commit 722df1de38
3 changed files with 267 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.system("patch -p1 --binary < davs2-1.6-gcc8-fix.patch")
shelltools.cd("build/linux")
autotools.configure("--extra-ldflags='-Wl,-z,noexecstack' \
--chroma-format='all' \
--enable-shared \
")
def build():
shelltools.cd("build/linux")
autotools.make()
def install():
shelltools.cd("build/linux")
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
shelltools.cd("../..")
pisitools.dodoc("COPYING", "README.md")