davs2-1.7.0

This commit is contained in:
uglyside
2025-02-09 12:19:37 +03:00
parent 8ce2ca4fab
commit 8d91d7b132
3 changed files with 23 additions and 198 deletions
+12 -10
View File
@@ -4,25 +4,27 @@
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "%s-%s/build/linux" % (get.srcNAME(), get.srcVERSION())
y = ''.join([
' --prefix=/usr',
' --chroma-format=\'all\'',
' --extra-ldflags=\'-Wl,-z,noexecstack\'',
' --enable-shared',
' --disable-static '
])
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 ")
autotools.rawConfigure(y)
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")
pisitools.dodoc("../../COPYING")