This commit is contained in:
4fury-c3440d8
2021-03-12 15:50:36 +03:00
parent 8ab06d8fbc
commit f5acc97590
2 changed files with 17 additions and 26 deletions
+6 -17
View File
@@ -2,37 +2,26 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Licensed under the GNU General Public License, version 3. # Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt # See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import get from pisi.actionsapi import get
WorkDir = "p7zip_%s" % get.srcVERSION() WorkDir = "p7zip-%s" % get.srcVERSION()
makefiles = { makefiles = {
'i686' : "makefile.linux_x86_asm_gcc_4.X", 'x86_64' : "makefile.linux_amd64"
'x86_64' : "makefile.linux_amd64_asm"
} }
def setup(): def setup():
shelltools.copy(makefiles[get.ARCH()], "makefile.machine") shelltools.copy(makefiles[get.ARCH()], "makefile.machine")
for i in shelltools.ls("makefile.*"):
pisitools.dosed(i, "^CC=gcc ", "CC=%s " % get.CC())
pisitools.dosed(i, "^CXX=g\+\+ ", "CXX=%s " % get.CXX())
def build(): def build():
autotools.make('OPTFLAGS="%s" all3' % get.CFLAGS()) autotools.make('OPTFLAGS="%s %s" 7z 7za 7zr sfx' % (get.CFLAGS(), get.CXXFLAGS()))
def install(): def install():
pisitools.insinto("/usr/lib/p7zip", "bin/*") autotools.rawInstall("DEST_DIR=%s DEST_HOME=/usr DEST_MAN=/usr/share/man" % get.installDIR())
# p7zip wrapper pisitools.dodoc("README.md")
pisitools.dobin("contrib/gzip-like_CLI_wrapper_for_7z/p7zip")
pisitools.doman("contrib/gzip-like_CLI_wrapper_for_7z/man1/p7zip.1")
pisitools.doman("man1/*")
pisitools.dohtml("DOC/MANUAL/*")
pisitools.dodoc("ChangeLog", "README", "TODO", "DOC/*.txt")
+11 -9
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd"> <!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI> <PISI>
<Source> <Source>
<Name>p7zip</Name> <Name>p7zip</Name>
<Homepage>http://p7zip.sourceforge.net/</Homepage> <Homepage>https://github.com/jinfeihan57/p7zip</Homepage>
<Packager> <Packager>
<Name>PisiLinux Community</Name> <Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email> <Email>admins@pisilinux.org</Email>
@@ -14,8 +14,8 @@
<Description> <Description>
p7zip is a port of 7-Zip archiver for Unix. Supports packing-unpacking 7z, ZIP, GZIP, BZIP2 and TAR archives and unpacking RAR, CAB, ISO, ARJ, LZH, CHM, Z, CPIO, RPM, DEB and NSIS arhives. p7zip is a port of 7-Zip archiver for Unix. Supports packing-unpacking 7z, ZIP, GZIP, BZIP2 and TAR archives and unpacking RAR, CAB, ISO, ARJ, LZH, CHM, Z, CPIO, RPM, DEB and NSIS arhives.
</Description> </Description>
<Archive sha1sum="e8819907132811aa1afe5ef296181d3a15cc8f22" type="tarbz2"> <Archive sha1sum="cc4961dbaf7b2abcd589a95e4f8e4b82e8f66268" type="targz">
mirrors://sourceforge/p7zip/p7zip/16.02/p7zip_16.02_src_all.tar.bz2 https://github.com/jinfeihan57/p7zip/archive/v17.03.tar.gz
</Archive> </Archive>
<BuildDependencies> <BuildDependencies>
<Dependency>yasm-devel</Dependency> <Dependency>yasm-devel</Dependency>
@@ -34,14 +34,16 @@
<Path fileType="doc">/usr/share/doc</Path> <Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path> <Path fileType="man">/usr/share/man</Path>
</Files> </Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0755" target="/usr/bin/7z">7z</AdditionalFile>
<AdditionalFile owner="root" permission="0755" target="/usr/bin/7za">7za</AdditionalFile>
<AdditionalFile owner="root" permission="0755" target="/usr/bin/7zr">7zr</AdditionalFile>
</AdditionalFiles>
</Package> </Package>
<History> <History>
<Update release="7">
<Date>2021-03-13</Date>
<Version>17.03</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="6"> <Update release="6">
<Date>2020-02-19</Date> <Date>2020-02-19</Date>
<Version>16.02</Version> <Version>16.02</Version>