bzip3 new package

This commit is contained in:
Rmys
2025-04-11 11:39:02 +03:00
parent db58279844
commit 650e26aad8
7 changed files with 230 additions and 6 deletions
+52
View File
@@ -0,0 +1,52 @@
#!/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
libversion = get.srcVERSION()
def setup():
autotools.configure("--prefix=/usr --enable-shared --with-pkgconfigdir=/usr/lib/pkgconfig --libdir=/lib --bindir=/bin")
def build():
autotools.make('all CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC"' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS()))
# autotools.make('CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" -f Makefile-libbz2_so' % get.CFLAGS())
def check():
autotools.make("check")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
# autotools.rawInstall("PREFIX=%s/usr" % get.installDIR())
pisitools.remove("/lib/libbzip3.a")
# No static libs
# pisitools.removeDir("/usr/lib")
# pisitools.domove("/usr/bin/", "/")
# for link in ("/bin/bunzip2", "/bin/bzcat"):
# pisitools.remove(link)
# pisitools.dosym("bzip2", link)
# for wrong_link in ("/bin/bzcmp", "/bin/bzegrep", "/bin/bzfgrep", "/bin/bzless"):
# pisitools.remove(wrong_link)
# pisitools.dosym("bzgrep", "/bin/bzegrep")
# pisitools.dosym("bzgrep", "/bin/bzfgrep")
# pisitools.dosym("bzdiff", "/bin/bzcmp")
# pisitools.dosym("bzmore", "/bin/bzless")
# pisitools.dolib("libbz3.o.%s" % libversion, "/lib")
# pisitools.dosym("libbz2.so.1", "/lib/libbz2.so")
# pisitools.dosym("libbz2.so.1", "/lib/libbz2.so.1.0")
# pisitools.dosym("libbz2.so.%s" % libversion, "/lib/libbz2.so.1")
# pisitools.dohtml("manual.html")
pisitools.dodoc("README*", "NEWS", "LICENSE")
+46
View File
@@ -0,0 +1,46 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>bzip3</Name>
<Homepage>http://www.bzip.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BZIP2</License>
<IsA>app:console</IsA>
<Summary>A high-quality data compressor</Summary>
<Description>bzip2 is high-quality data compressor. It typically compresses files to within 10% to 15% of the best available techniques (the PPM family of statistical compressors), whilst being around twice as fast at compression and six times faster at decompression.</Description>
<Archive sha1sum="48e94d3db9a16b01294345bb1f5dd9e2808b865e" type="tarxz">https://github.com/kspalaiologos/bzip3/releases/download/1.5.1/bzip3-1.5.1.tar.xz</Archive>
<Patches>
<!-- <Patch level="1">bzip2-1.0.2-progress.patch</Patch> -->
<!-- <Patch level="1">bzip2-1.0.4-bzip2recover.patch</Patch> -->
<!-- <Patch level="1">bzip2-1.0.4-man-links.patch</Patch> -->
<!-- <Patch>bzip2-1.0.8-saneso.patch</Patch> -->
<!-- <Patch level="1">manpath.patch</Patch> -->
</Patches>
</Source>
<Package>
<Name>bzip3</Name>
<Files>
<Path fileType="executable">/bin</Path>
<Path fileType="library">/lib</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2025-04-11</Date>
<Version>1.5.1</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
</History>
</PISI>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>bzip2</Name>
<Summary xml:lang="tr">Yüksek kaliteli bir veri sıkıştırma uygulaması</Summary>
<Description xml:lang="tr">bzip2 yüksek kaliteli bir veri sıkıştırma programıdır. Program genellikle dosyaları mümkün olan en iyi teknikler ile (PPM istatistiksel sıkıştırıcı ailesi) %10 - %15'e kadar sıkışıtırabilmektedir. Sıkıştırma işleminde iki kata kadar hızlı iken açma hızında yaklaşık altı kat daha hızlıdır.</Description>
<Description xml:lang="fr">bzip2 est un compresseur de données de très grand qualité. Il compresse typiquement les fichiers à un ratio entre 10 et 15% des meilleurs techniques disponibles (la famille des compresseurs statistiques de famille PPM) tout en étant environ deux fois plus rapide à la compression et six fois plus rapide à la décompression.</Description>
<Description xml:lang="de">bzip2 ist ein hochwertiger Daten-Kompressor. Es komprimiert Dateien üblicherweise auf 10% bis 15% der bestmöglichen Techniken (die PPM Familie der statistischen Kompressoren), während es ungefähr doppelt so schnell komprimiert und sechsfach schneller extrahiert</Description>
</Source>
</PISI>