<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mozjs</Name>
        <Homepage>http://www.mozilla.org/js/spidermonkey/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>NPL-1.1</License>
        <IsA>library</IsA>
        <Summary>Stand-alone JavaScript C Library</Summary>
        <Description>Spidermonkey is Mozilla's C implementation of JavaScript.</Description>
        <Archive type="tarxz" sha1sum="b8f2f54134133fc209640b2084dfc612f6e8d787">https://ftp.mozilla.org/pub/firefox/releases/140.3.1esr/source/firefox-140.3.1esr.source.tar.xz</Archive>
        <AdditionalFiles>
            <AdditionalFile target="mozconfig" permission="0644">mozconfig</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>rust</Dependency>
            <Dependency>llvm</Dependency>
            <Dependency>cbindgen</Dependency>
            <Dependency>lld-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>nspr-devel</Dependency>
            <Dependency>autoconf213</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>readline-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">0001-Bug-1973994-mozjs-140.pc-does-not-contain-DXP_UNIX-o.patch</Patch>
        </Patches>
    </Source>
    <Package>
        <Name>mozjs</Name>
        <RuntimeDependencies>
            <Dependency>nspr</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>mozjs-devel</Name>
        <Summary>Development files for spidermonkey</Summary>
        <RuntimeDependencies>
            <Dependency>nspr-devel</Dependency>
            <Dependency release="current">mozjs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <!--Path fileType="executable">/usr/bin/js17-config</Path-->
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2025-10-14</Date>
            <Version>140.3.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2024-09-11</Date>
            <Version>128.2.0</Version>
            <Comment>First release</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
    </History>
</PISI>
