-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalienfile
41 lines (35 loc) · 1.18 KB
/
alienfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use alienfile;
use File::Copy qw(copy);
use Env qw( @PATH );
if ($^O ne 'linux' and $ENV{FORCE_INSTALL} ne '1') {
die "OS unsupported. This is a Linux-only module\n";
}
plugin 'PkgConfig' => 'libudev';
share {
requires 'Alien::autoconf' => '0.03';
#requires 'Alien::automake' => '0.05';
requires 'Alien::libtool' => '0.02';
requires 'Alien::m4' => '0.11';
requires 'Alien::gperf' => '0.005';
plugin Download => (
# Archive::Tar chokes on the symlink, even with $Archive::Tar::FOLLOW_SYMLINK=1
# So extracting the zip instead.
url => 'https://github.com/gentoo/eudev/releases',
filter => qr/^v .* \.zip$/x,
version => qr/([0-9\.]+)/,
);
patch sub {
# README is a symlink and would make autotools fail on filesystems not supporting them
unlink 'README';
copy qw(README.md README);
};
plugin Extract => 'zip';
build [
'autoreconf -i',
'./configure --prefix=%{.install.prefix} --disable-shared --with-pic',
'%{make} -C src/shared',
'%{make} -C src/libudev',
'%{make} -C src/libudev install'
];
plugin 'Gather::IsolateDynamic' => ();
};