summaryrefslogtreecommitdiff
path: root/Build.PL
blob: 1f90cd327d5f052a780a45f6c03cf85f97fa1812 (plain)
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
#!perl 
use Alien::Base::ModuleBuild;
Alien::Base::ModuleBuild->new(
    dist_name => 'Alien-QREncode',
    module_name => 'Alien::QREncode',
 
    alien_name => 'qrencode',
    alien_inline_auto_include => ['qrencode.h'],
    alien_repository => {
        protocol => 'https',
        host => 'fukuchi.org',
        location => '/works/qrencode/index.html.en',
        pattern => qr{^qrencode-(.*?)\.tar\.bz2$},
    },
    configure_requires  => { 'Alien::Base::ModuleBuild' => '0.022' },
    alien_version_check => '%{pkg_config} --atleast-version 3.4.4 %n && %{pkg_config} --modversion %n',
 
    alien_build_commands => [
        '%c --prefix=%s --with-tests',
        'make',
    ],
    alien_test_commands => [
        'cd tests && ./create_frame_pattern frame',
        'cd tests && ./test_all.sh',
    ],
 
    license => 'gpl',
)->create_build_script;