diff options
author | Krzysztof AS (3ED) | 2023-05-01 10:42:40 +0200 |
---|---|---|
committer | Krzysztof AS (3ED) | 2023-05-01 10:42:40 +0200 |
commit | b2b772d9b6dfc1d18b562e918fc1f67882c08693 (patch) | |
tree | 170990c59088d803f9888e77eaba295aba941ba3 | |
download | aur-b2b772d9b6dfc1d18b562e918fc1f67882c08693.tar.gz |
initial
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e3c6e2e390ec --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = perl-gtk4 + pkgdesc = Perl interface to the 4.x series of the GTK+ toolkit + pkgver = 0.001.r6.d3554f1 + pkgrel = 1 + url = https://gitlab.gnome.org/World/Perl/perl-gtk4/ + arch = i686 + arch = x86_64 + license = LGPL + makedepends = perl-dist-zilla + makedepends = perl-dist-zilla-plugin-git + depends = gtk4 + depends = perl-cairo-gobject + depends = perl-glib-object-introspection + source = perl-gtk4::git+https://gitlab.gnome.org/World/Perl/perl-gtk4/ + sha512sums = SKIP + +pkgname = perl-gtk4 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5a7caa9d83fa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: 3ED_0 <krzysztof1987 /at/ gmail.com> + +pkgname=perl-gtk4 +pkgver=0.001.r6.d3554f1 +pkgrel=1 +url="https://gitlab.gnome.org/World/Perl/perl-gtk4/" +license=('LGPL') +pkgdesc="Perl interface to the 4.x series of the GTK+ toolkit" +arch=('i686' 'x86_64') +depends=('gtk4' 'perl-cairo-gobject' 'perl-glib-object-introspection') +makedepends=('perl-dist-zilla' 'perl-dist-zilla-plugin-git') +source=( + perl-gtk4::git+https://gitlab.gnome.org/World/Perl/perl-gtk4/ +) +sha512sums=('SKIP') + +pkgver() { + cd $srcdir/$pkgname + + printf "%s.r%s.%s" \ + $(perl -MConfig::INI::Reader -e 'print Config::INI::Reader->read_file(q{dist.ini})->{_}->{version}') \ + $(git rev-list --count HEAD) \ + $(git rev-parse --short=7 HEAD) +} + +build() { + cd $srcdir/$pkgname + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + + dzil build +} + +check() { + cd $srcdir/$pkgname + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + + dzil test +} + +package() { + cd $srcdir/$pkgname + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + + dzil run make install INSTALLDIRS=vendor DESTDIR="$pkgdir" +} |