33 lines
858 B
Python
33 lines
858 B
Python
#!/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
|
|
|
|
from pisi.actionsapi import autotools
|
|
from pisi.actionsapi import pisitools
|
|
from pisi.actionsapi import get
|
|
|
|
binFiles = ["nasm", "ndisasm"]
|
|
# rdoffFiles = ["ldrdf", "rdf2bin", "rdf2ihx", "rdfdump", "rdflib", "rdx"]
|
|
|
|
def setup():
|
|
autotools.configure()
|
|
|
|
def build():
|
|
autotools.make("all")
|
|
# autotools.make("rdf")
|
|
|
|
def install():
|
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
|
# for i in rdoffFiles:
|
|
# binFiles.append("rdoff/%s" % i)
|
|
|
|
# for i in binFiles:
|
|
# pisitools.dobin(i)
|
|
|
|
# pisitools.dosym("rdf2bin", "/usr/bin/rdf2com")
|
|
|
|
pisitools.doman("nasm.1", "ndisasm.1")
|
|
pisitools.dodoc("AUTHORS", "CHANGES", "ChangeLog", "README*", "doc/nasmdoc.*")
|