main update

This commit is contained in:
erkanışık1
2019-07-13 20:11:35 +03:00
parent 2dfd23cd09
commit 87790bbb3a
2 changed files with 20 additions and 15 deletions
+19 -15
View File
@@ -1,25 +1,29 @@
#!/usr/bin/python
# -*- 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 http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
autotools.configure("--disable-static \
--enable-systemd=no \
--libexecdir=/usr/lib/accountsservice")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.configure()
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.makedirs("build")
shelltools.cd("build")
shelltools.system("meson --prefix=/usr \
-Dsystemdsystemunitdir=no \
-Dgtk_doc=true \
--libexecdir=/usr/lib/accountsservice ..")
pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README")
def build():
shelltools.cd("build")
shelltools.system("ninja")
def install():
shelltools.cd("build")
shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
shelltools.cd("..")
pisitools.dodoc("README*", "NEWS", "COPYING", "TODO", "AUTHORS")