| Server IP : 144.76.79.100 / Your IP : 216.73.216.103 [ Web Server : Apache System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64 User : razzlestore ( 1092) PHP Version : 8.2.29 Disable Function : NONE Domains : 343 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/.cpanm/latest-build/Alien-Build-2.84/example/ |
Upload File : |
use alienfile;
# see xz.alienfile for a more reliable and portable
# example that uses plugins.
# Use pkg-config to check if the library exists.
# also, use which to check that the xz command is
# in the path.
probe [
'pkg-config --exists liblzma',
'which xz',
];
share {
start_url 'http://tukaani.org/xz/xz-5.2.3.tar.gz';
# the first one which succeeds will be used
download [ 'wget %{.meta.start_url}' ];
download [ 'curl -O %{.meta.start_url}' ];
# use tar to extract the tarball
extract [ 'tar zxf %{.install.download}' ];
# use the standard build process
build [
'./configure --prefix=%{.install.prefix} --disable-shared',
'%{make}',
'%{make} install',
];
# This package doesn't build a dynamic library by default, but if
# it did this would make sure that it wasn't used with XS.
# (See Alien::Build::Manual::AlienAuthor for details).
plugin 'Gather::IsolateDynamic';
};
# You can specify individual gather steps in share {} or
# sys {} too, but for many cases the same procedure can
# be used for both.
gather [
# store the (chomped) output into the appropriate runtime properties
[ 'pkg-config', '--modversion', 'liblzma', \'%{.runtime.version}' ],
[ 'pkg-config', '--cflags', 'liblzma', \'%{.runtime.cflags}' ],
[ 'pkg-config', '--libs', 'liblzma', \'%{.runtime.libs}' ],
];