summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalló György2017-01-24 13:14:10 +0100
committerBalló György2017-01-24 13:14:10 +0100
commit2c71ff039f316841f6b493dbd2ecf0e0762cda9d (patch)
tree2df47be1302733badc468bbe2f082a7ed16f1b12
downloadaur-2c71ff039f316841f6b493dbd2ecf0e0762cda9d.tar.gz
Move package from the [community] repository
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD40
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1824ca3c015
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = perl-goo-canvas
+ pkgdesc = Perl bindings for GooCanvas
+ pkgver = 0.06
+ pkgrel = 7
+ url = http://search.cpan.org/dist/Goo-Canvas/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ license = PerlArtistic
+ makedepends = perl-extutils-depends
+ makedepends = perl-extutils-pkgconfig
+ depends = cairo-perl
+ depends = glib-perl
+ depends = goocanvas1
+ depends = gtk2-perl
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/Y/YE/YEWENBIN/Goo-Canvas-0.06.tar.gz
+ md5sums = 7dfe0be8c17bfd641d18384d4fd8fb23
+
+pkgname = perl-goo-canvas
+ depends = cairo-perl
+ depends = glib-perl
+ depends = goocanvas1
+ depends = gtk2-perl
+ depends = perl>=
+ depends = perl<
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..93890485f31
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 174744 2016-05-11 04:23:20Z fyan $
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Shanto <shanto@hotmail.com>
+# Contributor: TDY <tdy@gmx.com>
+
+pkgname=perl-goo-canvas
+pkgver=0.06
+pkgrel=7
+pkgdesc="Perl bindings for GooCanvas"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/Goo-Canvas/"
+license=('GPL' 'PerlArtistic')
+depends=('cairo-perl' 'glib-perl' 'goocanvas1' 'gtk2-perl')
+makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/Y/YE/YEWENBIN/Goo-Canvas-$pkgver.tar.gz")
+md5sums=('7dfe0be8c17bfd641d18384d4fd8fb23')
+
+build() {
+ cd "$srcdir/Goo-Canvas-$pkgver"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$srcdir/Goo-Canvas-$pkgver"
+ make test
+}
+
+package() {
+ cd "$srcdir/Goo-Canvas-$pkgver"
+ make install DESTDIR="$pkgdir"
+# 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;
+}