summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoan Figueras2019-06-11 19:18:02 +0200
committerJoan Figueras2019-06-11 19:18:02 +0200
commit27aee15dcb4f79e48f348329f7b1dc13d1cf1d8f (patch)
tree15964f9ff5588c8de9149c8f966d3cefd051bedd
downloadaur-glade-perl.tar.gz
Initial release
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD40
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..50e63c66d5c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = glade-perl
+ pkgdesc = Gtk2-GladeXML perl bindings for glade 2.x
+ pkgver = 1.007
+ pkgrel = 17
+ url = https://metacpan.org/release/Gtk2-GladeXML
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ license = PerlArtistic
+ makedepends = perl-extutils-depends
+ makedepends = perl-extutils-pkgconfig
+ depends = libglade
+ depends = gtk2-perl
+ depends = perl
+ options = !emptydirs
+ source = https://cpan.metacpan.org/authors/id/T/TS/TSCH/Gtk2-GladeXML-1.007.tar.gz
+ md5sums = e6ca234e2a9f0221263acd2a593c583b
+
+pkgname = glade-perl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..70ea5cdc33e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Joan Figueras <ffigue at gmail dot com>
+
+pkgname=glade-perl
+_cpanname=Gtk2-GladeXML
+pkgver=1.007
+pkgrel=17
+pkgdesc="Gtk2-GladeXML perl bindings for glade 2.x"
+arch=('i686' 'x86_64')
+url="https://metacpan.org/release/${_cpanname}"
+license=('LGPL' 'PerlArtistic')
+makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
+depends=('libglade' 'gtk2-perl' 'perl')
+options=('!emptydirs')
+source=("https://cpan.metacpan.org/authors/id/T/TS/TSCH/${_cpanname}-${pkgver}.tar.gz")
+md5sums=('e6ca234e2a9f0221263acd2a593c583b')
+
+build() {
+ cd $_cpanname-$pkgver
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ sed -e 's,q(build/doc.pl),q(./build/doc.pl),g' -i Makefile
+ make
+}
+
+_perl_depends() {
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}
+
+package() {
+ cd $_cpanname-$pkgver
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
+ _perl_depends
+}