<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>grub2</Name>
        <Homepage>http://www.gnu.org/software/grub/</Homepage>
        <Packager>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <IsA>app:gui</IsA>
        <Summary>GNU GRUB is a Multiboot boot loader.</Summary>
        <Description>GNU GRUB (short for GNU GRand Unified Bootloader) is a boot loader package from the GNU Project.</Description>
        <Archive sha1sum="b8370fa991f63027764f41d58b90aa8a0871f1e9" type="tarxz">https://ftp.gnu.org/gnu/grub/grub-2.14.tar.xz</Archive>
        <Archive sha1sum="881e76f8b279dd3acca353605a7fb3316f21ea5c" type="gz">https://ftp.gnu.org/gnu/unifont/unifont-17.0.03/unifont-17.0.03.bdf.gz</Archive>
        <Archive sha1sum="43366e0a150bb3eb6b93f2feec33ea4b57d96dd9" type="targz" target="grub-2.14/themes">
            https://github.com/erkanisik1/Pisilinux2.4-Grub2-Themes/archive/refs/tags/v1.3.tar.gz
        </Archive>
        <BuildDependencies>
            <Dependency>git</Dependency>
            <Dependency>autogen-devel</Dependency>
            <Dependency>binutils</Dependency>
            <Dependency>bison</Dependency>
            <Dependency>flex</Dependency>
            <Dependency>gcc</Dependency>
            <Dependency>help2man</Dependency>
            <Dependency>texinfo</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>xz-devel</Dependency>
            <Dependency>fuse3-devel</Dependency>
            <Dependency>lvm2-devel</Dependency>
            <Dependency>device-mapper-devel</Dependency>
            <Dependency>gettext-devel</Dependency>
            <Dependency>noto-fonts</Dependency>
            <Dependency>efivar-devel</Dependency>
            <Dependency>efibootmgr-devel</Dependency>
            <Dependency>mtools</Dependency>
            <Dependency>dosfstools</Dependency>
            <Dependency>python3-devel</Dependency>
        </BuildDependencies>
        <Replaces>
            <Package>grub</Package>
        </Replaces>
        <Patches>
<!--             <Patch level="1">mageia/0001-Fix-fgrep-grep-F-warnings.patch</Patch> -->

            <Patch level="1">gfxpayload.patch</Patch>
            <Patch level="1">grub-2.02_beta2-KERNEL_GLOBS.patch</Patch>
            <Patch level="1">grub-mkconfig.patch</Patch>
            <Patch>pisi_name_and_initramfs_2.patch</Patch>

            <Patch level="1">grub-2.06-test-words.patch</Patch>
<!--             <Patch level="1">grub-mkconfig_lib.patch</Patch> -->

            <Patch level="1">0001-Revert-templates-Fix-user-facing-typo-with-an-incorr.patch</Patch>
            <Patch level="1">0002-Revert-templates-Properly-disable-the-os-prober-by-d.patch</Patch>
            <Patch level="1">0003-Revert-templates-Disable-the-os-prober-by-default.patch</Patch>
<!--             <Patch level="1">0202-templates-Check-for-EFI-at-runtime-instead-of-config.patch</Patch> -->
<!--             <Patch level="1">0203-efi-Print-an-error-if-boot-to-firmware-setup-is-not-.patch</Patch> -->
<!--             <Patch level="1">0204-arm64-Fix-EFI-loader-kernel-image-allocation.patch</Patch> -->
<!--             <Patch level="1">0205-normal-main-Discover-the-device-to-read-the-config-f.patch</Patch> -->
<!--             <Patch level="1">0206-powerpc-adjust-setting-of-prefix-for-signed-binary-c.patch</Patch> -->
<!--             <Patch level="1">0207-powerpc-fix-prefix-signed-grub-special-case-for-Powe.patch</Patch> -->
<!--             <Patch level="1">0208-Arm-check-for-the-PE-magic-for-the-compiled-arch.patch</Patch> -->
<!--             <Patch level="1">0209-fs-xfs-Fix-unreadable-filesystem-with-v4-superblock.patch</Patch> -->
<!--             <Patch level="1">0210-Print-module-name-on-license-check-failure.patch</Patch> -->
            <Patch level="1">0211-powerpc-ieee1275-load-grub-at-4MB-not-2MB.patch</Patch>
<!--             <Patch level="1">Allow_GRUB_to_mount_ext234_filesystems_that_have_the_encryption_feature.patch</Patch> -->
<!--             <Patch level="1">tsc-Change-default-tsc-calibration-method-to-pmtimer-on-EFI-systems.patch</Patch> -->
<!--             <Patch level="1">intel-ucode.patch</Patch> -->
<!--             <Patch level="1">2.02-gcc8.patch</Patch> -->
<!--             <Patch level="1">0001-grub-install-fix-inverted-test-for-NLS-enabled-when-.patch</Patch> -->
<!--             <Patch level="1">0006-BootHole.patch</Patch> -->
            <Patch level="1">b835601c.patch</Patch>
            <Patch level="1">grub-2.14-revert-image-base.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>grub2</Name>
        <RuntimeDependencies>
            <Dependency>freetype</Dependency>
            <Dependency>xz</Dependency>
            <Dependency>fuse3</Dependency>
            <Dependency>lvm2</Dependency>
            <Dependency>device-mapper</Dependency>
            <Dependency>mtools</Dependency>
            <Dependency>os-prober</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/usr/lib/grub/i386-pc/</Path>
            <Path fileType="library">/usr/lib/grub/x86_64-efi</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/grub</Path>
            <Path fileType="data">/usr/share/info</Path>
            <Path fileType="data">/boot/grub2</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
            <Path fileType="man">/usr/share/man/man8</Path>
            <Path fileType="config">/etc/bash_completion.d</Path>
            <Path fileType="config">/etc/grub.d</Path>
            <Path fileType="config">/etc/default</Path>
            <Path fileType="data">/usr/share/bash-completion</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/grub/pisi-grub-bg.png">pisi-grub-bg.png</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/default/grub">grub-defaults</AdditionalFile>
            <AdditionalFile owner="root" permission="0755" target="/etc/grub.d/30_uefi-firmware">30_uefi-firmware-new</AdditionalFile>
            <AdditionalFile owner="root" permission="0755" target="/usr/bin/update-grub">update-grub</AdditionalFile>
<!--             <AdditionalFile owner="root" permission="0755" target="/etc/grub.d/30_os-prober">30_os-prober2</AdditionalFile> -->
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="39">
            <Date>2026-05-09</Date>
            <Version>2.14</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="38">
            <Date>2026-01-17</Date>
            <Version>2.14</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="37">
            <Date>2025-09-01</Date>
            <Version>2.12</Version>
            <Comment>Theme version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="36">
            <Date>2025-08-20</Date>
            <Version>2.12</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="35">
            <Date>2024-11-03</Date>
            <Version>2.12</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
         <Update release="34">
            <Date>2024-09-10</Date>
            <Version>2.12</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="33">
            <Date>2024-09-07</Date>
            <Version>2.12</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="32">
            <Date>2024-07-11</Date>
            <Version>2.12</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="31">
            <Date>2024-06-09</Date>
            <Version>2.12</Version>
            <Comment>Rebuild themes.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="30">
            <Date>2024-04-24</Date>
            <Version>2.12</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="29">
            <Date>2024-04-23</Date>
            <Version>2.06</Version>
            <Comment>add new theme</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="28">
            <Date>2023-12-24</Date>
            <Version>2.06</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="27">
            <Date>2023-09-12</Date>
            <Version>2.06</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="26">
            <Date>2022-10-26</Date>
            <Version>2.06</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="25">
            <Date>2022-09-26</Date>
            <Version>2.06</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="24">
            <Date>2022-09-02</Date>
            <Version>2.06</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="23">
            <Date>2022-05-15</Date>
            <Version>2.06</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="22">
            <Date>2021-11-11</Date>
            <Version>2.06</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="21">
            <Date>2021-08-22</Date>
            <Version>2.06</Version>
            <Comment>Rebuild efibootmgr.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="20">
            <Date>2021-07-17</Date>
            <Version>2.06</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="19">
            <Date>2021-07-16</Date>
            <Version>2.04</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="18">
            <Date>2020-12-09</Date>
            <Version>2.04</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="17">
            <Date>2020-04-09</Date>
            <Version>2.04</Version>
            <Comment>Rebuild unicode</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="16">
            <Date>2020-03-28</Date>
            <Version>2.04</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="15">
            <Date>2020-01-18</Date>
            <Version>2.02</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="14">
            <Date>2019-10-09</Date>
            <Version>2.02</Version>
            <Comment>revert 2.02</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="13">
            <Date>2019-09-06</Date>
            <Version>2.04</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="12">
            <Date>2019-10-05</Date>
            <Version>2.02</Version>
            <Comment>theme add</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="11">
            <Date>2018-07-15</Date>
            <Version>2.02</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="10">
            <Date>2017-12-25</Date>
            <Version>2.02</Version>
            <Comment>Patch for ext234.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="9">
            <Date>2017-12-06</Date>
            <Version>2.02</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
         <Update release="8">
            <Date>2017-06-19</Date>
            <Version>2.02_rc2</Version>
            <Comment>version B.</Comment>
            <Name>Ali Algul</Name>
            <Email>aligulle3801@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2017-03-04</Date>
            <Version>2.02_beta3</Version>
            <Comment>update.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2017-03-04</Date>
            <Version>2.02_beta2</Version>
            <Comment>Rebuild.</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="6">
            <Date>2016-08-21</Date>
            <Version>2.02_beta2</Version>
            <Comment>New theme</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2016-07-30</Date>
            <Version>2.02_beta2</Version>
            <Comment>Add windows 42_custom remove</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2016-07-12</Date>
            <Version>2.02_beta2</Version>
            <Comment>Add windows 42_custom</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-25</Date>
            <Version>2.02_beta2</Version>
            <Comment>Add efi</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>2.02_beta2</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
         </Update>
         <Update release="1">
            <Date>2016-04-20</Date>
            <Version>2.02_beta2</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
