forked from Pardus-Linux/Packages
-
Notifications
You must be signed in to change notification settings - Fork 9
/
actions.py
52 lines (40 loc) · 1.58 KB
/
actions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
shelltools.export("HOME", get.workDIR())
def setup():
shelltools.export("AUTOPOINT", "true")
autotools.autoreconf("-vfi")
#shelltools.system("./autogen.sh --disable-gtk-doc --disable-docbook")
options = '--with-package-name="GStreamer package for Pardus" \
--with-package-origin="http://www.pardus-anka.org" \
--enable-nls \
--disable-dependency-tracking \
--disable-examples \
--disable-tests \
--disable-failing-tests \
--disable-static \
--disable-rpath \
--disable-valgrind \
--disable-gtk-doc'
if get.buildTYPE() == "emul32":
options += " --bindir=/usr/bin32 \
--libexecdir=/usr/libexec32 \
--libdir=/usr/lib32"
shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
autotools.configure(options)
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32":
pisitools.removeDir("/usr/bin32")
pisitools.removeDir("/usr/libexec32")
pisitools.removeDir("/usr/share/gtk-doc")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README")