minizip: support minizip and miniunz building (#17925)
* minizip: support minizip and miniunz building * minizip: remove comment * refine build flow
This commit is contained in:
parent
7f9018e893
commit
1fdaffed3f
@ -21,3 +21,19 @@ class Minizip(AutotoolsPackage):
|
|||||||
depends_on('libtool', type='build')
|
depends_on('libtool', type='build')
|
||||||
depends_on('m4', type='build')
|
depends_on('m4', type='build')
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
|
|
||||||
|
# build minizip and miniunz
|
||||||
|
@run_before('autoreconf')
|
||||||
|
def build_minizip_binary(self):
|
||||||
|
configure()
|
||||||
|
make()
|
||||||
|
with working_dir(self.configure_directory):
|
||||||
|
make()
|
||||||
|
|
||||||
|
# install minizip and miniunz
|
||||||
|
@run_after('install')
|
||||||
|
def install_minizip_binary(self):
|
||||||
|
mkdirp(self.prefix.bin)
|
||||||
|
with working_dir(self.configure_directory):
|
||||||
|
install('minizip', self.prefix.bin)
|
||||||
|
install('miniunz', self.prefix.bin)
|
||||||
|
Loading…
Reference in New Issue
Block a user