create core package

This commit is contained in:
aydemir
2015-02-24 11:18:35 +02:00
parent 0e4b743b82
commit 70b25d0f95
1098 changed files with 169545 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/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
dirs = ("dict", "rfc")
def setup():
autotools.configure("--datadir=/usr/share/misc")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
for d in dirs:
pisitools.dodir("/usr/share/%s" % d)
for line in tuple(open("Makefile.am", 'r')):
if line.startswith(d):
for f in line.strip().split("=")[1][1:].split(" "):
pisitools.domove("/usr/share/misc/%s" % f, "/usr/share/%s/" % d)
pisitools.dodoc("GNU*", "NEWS", "ORIGIN", "README", "dict-README")