code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gcap</Name>
        <Homepage>https://wiki.gnome.org/msitools</Homepage>
        <Packager>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Packager>
        <License>LGPL2.1</License>
        <IsA>app:console</IsA>
        <Summary>Library and tool for working with Microsoft Cabinet (CAB) files</Summary>
        <Description>Library and tool for working with Microsoft Cabinet (CAB) files</Description>
        <Archive sha1sum="1fca43f2a8120060f5d12ac08c278b6e9f57986b" type="tarxz">http://ftp.gnome.org/pub/GNOME/sources/gcab/0.7/gcab-0.7.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>glib2-devel</Dependency>
            <Dependency>vala-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>intltool</Dependency>
            <Dependency>gtk-doc</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>gcap</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>glib2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>gcap-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">gcap</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-12-10</Date>
            <Version>0.7</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import get

def setup():
    #libtar-1.2.11-free.patch
    pisitools.dosed("lib/output.c", "#ifdef STDC_HEADERS", "#ifdef STDC_HEADERS\n# include <stdlib.h>")
    pisitools.dosed("lib/wrapper.c", "#ifdef STDC_HEADERS", "#ifdef STDC_HEADERS\n# include <stdlib.h>")
    autotools.autoreconf("-fvi")
    autotools.configure("--disable-static")

    # Remove rpath
    pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
    pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")

def build():
    autotools.make

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("ChangeLog*", "COPYRIGHT", "README", "TODO")

repo_name: ayhanyalcinsoy/main