#!/usr/bin/env perl use v5.24; use warnings; use strict; use Function::Parameters; use Log::Any::Adapter; use Log::Log4perl qw(:easy); use JSON; use App::ArchLinux::PackagerTools; =head1 NAME perlpkg.pl - Script to support perl packaging on Arch Linux =head1 SYNOPSIS perlpkg.pl [options] Options: --debug =head1 DESCRIPTION TODO =head1 CONFIGURATION To configure the script create a file called $XDG_CONFIG_HOME/perlpkg/config.toml. The configuration file is not yet used/read. TODO =head1 SEE ALSO L =cut Log::Log4perl->easy_init($ERROR); if ($ARGV[0] // "" eq "--debug") { Log::Log4perl->easy_init($TRACE); } else { Log::Log4perl->easy_init($INFO); } Log::Any::Adapter->set('Log4perl'); my $app = App::ArchLinux::PackagerTools->new(); use Data::Dumper; my $filtered_pkgs = $app->get_filtered_updateable_packages(); print encode_json($filtered_pkgs); # TODO generate new pacakge pkgbuild # TODO build # TODO release