example/dontpanic.alienfile
raw| 1 | use alienfile; |
| 2 | |
| 3 | probe sub { 'share' }; |
| 4 | |
| 5 | share { |
| 6 | |
| 7 | start_url 'https://github.com/PerlAlien/dontpanic.git'; |
| 8 | |
| 9 | download [ |
| 10 | [ "git clone --bare %{.meta.start_url}" ] |
| 11 | ]; |
| 12 | |
| 13 | extract [ |
| 14 | [ "git clone %{.install.download}" ] |
| 15 | ]; |
| 16 | |
| 17 | plugin 'Build::Autoconf'; |
| 18 | |
| 19 | plugin 'Gather::IsolateDynamic'; |
| 20 | |
| 21 | build [ |
| 22 | 'git checkout 1.00', |
| 23 | 'bash autogen.sh', |
| 24 | '%{configure} --enable-static --enable-shared', |
| 25 | '%{make}', |
| 26 | '%{make} install', |
| 27 | ]; |
| 28 | |
| 29 | |
| 30 | }; |