From 503f2f55740e94817ac47edfcdc4cd3aa5d284d3 Mon Sep 17 00:00:00 2001 From: Alexandr Savca Date: Sun, 22 Nov 2020 12:51:52 +0200 Subject: [PATCH] p5-gtk2-trayicon: initial commit, v0.06 --- p5-gtk2-trayicon/.footprint | 21 +++++++++++++++++++++ p5-gtk2-trayicon/.signature | 5 +++++ p5-gtk2-trayicon/Pkgfile | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 p5-gtk2-trayicon/.footprint create mode 100644 p5-gtk2-trayicon/.signature create mode 100644 p5-gtk2-trayicon/Pkgfile diff --git a/p5-gtk2-trayicon/.footprint b/p5-gtk2-trayicon/.footprint new file mode 100644 index 000000000..31470022e --- /dev/null +++ b/p5-gtk2-trayicon/.footprint @@ -0,0 +1,21 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/perl5/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/Gtk2/ +-r--r--r-- root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/Gtk2/TrayIcon.pm +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/Gtk2/TrayIcon/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/Gtk2/TrayIcon/Install/ +-r--r--r-- root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/Gtk2/TrayIcon/Install/Files.pm +-r--r--r-- root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/Gtk2/TrayIcon/Install/trayicon-autogen.h +-r--r--r-- root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/Gtk2/TrayIcon/Install/trayicon.typemap +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/auto/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/auto/Gtk2/ +drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/auto/Gtk2/TrayIcon/ +-r-xr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/auto/Gtk2/TrayIcon/TrayIcon.so +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man3/ +-r--r--r-- root/root usr/share/man/man3/Gtk2::TrayIcon.3pm.gz diff --git a/p5-gtk2-trayicon/.signature b/p5-gtk2-trayicon/.signature new file mode 100644 index 000000000..8504b93fe --- /dev/null +++ b/p5-gtk2-trayicon/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF39ccMLx841feZoGsMyEhYAgPPkOS4+vPrXg9enCgKQEeEcHr6kpz6XoYwlaPMOseZJlcjS+d0k2qZVRTcnm/wA0= +SHA256 (Pkgfile) = eb425ec1bd527cecaf9743705f07f415bc9548fdc5391ea5b2ea6eaee25daf53 +SHA256 (.footprint) = 6d1ba822e606c7cccc7df27bec2d670e046c758647f8509b03806feacbe2647a +SHA256 (Gtk2-TrayIcon-0.06.tar.gz) = cbb7632b75d7f41554dfe8ee9063dbfd1d8522291077c65d0d82e9ceb5e94ae2 diff --git a/p5-gtk2-trayicon/Pkgfile b/p5-gtk2-trayicon/Pkgfile new file mode 100644 index 000000000..77e6d9c8f --- /dev/null +++ b/p5-gtk2-trayicon/Pkgfile @@ -0,0 +1,32 @@ +# Description: Perl interface to the EggTrayIcon library +# URL: https://metacpan.org/pod/Gtk2::TrayIcon +# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com +# Depends on: p5-gtk2 p5-module-install + +name=p5-gtk2-trayicon +version=0.06 +release=1 +source=(https://cpan.metacpan.org/authors/id/B/BO/BORUP/Gtk2-TrayIcon-$version.tar.gz) + +build () { + cd Gtk2-TrayIcon-$version + + perl Makefile.PL + + # remove default -pipe flag + sed -i -e '/CCFLAGS = /s/ -pipe / /' Makefile + + make OPTIMIZE="$CFLAGS" + make DESTDIR=$PKG install + + # remove perlcrap + find $PKG \ + -name perllocal.pod \ + -o -name "*.bs" \ + -o -name autosplit.ix \ + -o -name .packlist \ + | xargs rm -f + + # remove empty dirs + find $PKG -depth -type d -empty -delete +}