summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhoton892017-01-25 20:16:21 +0100
committerPhoton892017-01-25 20:16:21 +0100
commit9ca3ed0f054dd5395d02a43f27400dcac7d100a5 (patch)
treed6ccff5df8486b263e571394a860ad1084ae6efe
downloadaur-9ca3ed0f054dd5395d02a43f27400dcac7d100a5.tar.gz
Give gnome-vfs-perl a second life in the AUR
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD35
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2f7c62b1684
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = gnome-vfs-perl
+ pkgdesc = Gnome2-VFS perl bindings for gnome-vfs
+ pkgver = 1.082
+ pkgrel = 4
+ url = http://gtk2-perl.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = perl-extutils-pkgconfig
+ makedepends = perl-extutils-depends
+ depends = gtk2-perl
+ depends = gnome-vfs
+ depends = perl
+ options = !emptydirs
+ source = http://downloads.sourceforge.net/sourceforge/gtk2-perl/Gnome2-VFS-1.082.tar.gz
+ md5sums = 374e7d611d080d893bb3da9d40c64733
+
+pkgname = gnome-vfs-perl
+ depends = gtk2-perl
+ depends = gnome-vfs
+ depends = perl
+ depends = perl>=
+ depends = perl<
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a3ce580d181
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: PhotonX <photon89@googlemail.com>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+
+pkgname=gnome-vfs-perl
+pkgver=1.082
+pkgrel=4
+pkgdesc="Gnome2-VFS perl bindings for gnome-vfs"
+arch=(i686 x86_64)
+license=('LGPL')
+url="http://gtk2-perl.sourceforge.net/"
+makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends')
+depends=('gtk2-perl' 'gnome-vfs' 'perl')
+options=('!emptydirs')
+source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/Gnome2-VFS-${pkgver}.tar.gz)
+md5sums=('374e7d611d080d893bb3da9d40c64733')
+
+build() {
+ cd Gnome2-VFS-$pkgver
+ perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ cd Gnome2-VFS-$pkgver
+ make DESTDIR="${pkgdir}" install
+
+# 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;
+}