summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJoan Figueras2017-02-15 11:59:38 +0100
committerJoan Figueras2017-02-15 11:59:38 +0100
commitf13b1d0606699dd86c78a6727e2f3717996b8b9f (patch)
tree599ddf008fee219fd9f1884ffd6a3fa7cb054aff /PKGBUILD
downloadaur-f13b1d0606699dd86c78a6727e2f3717996b8b9f.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5f854cda315
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Joan Figueras <ffigue at gmail dot com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
+
+pkgname=perl-gnome2-gconf
+pkgver=1.044
+pkgrel=1
+pkgdesc="Perl interface to the GConf configuration database"
+arch=('i686' 'x86_64')
+license=("GPL" "PerlArtistic")
+url="http://search.cpan.org/dist/Gnome2-GConf"
+depends=('gtk2-perl' 'gconf')
+makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gnome2-GConf-${pkgver}.tar.gz")
+md5sums=('ea386003b18f067524833b0eeb271330')
+
+build() {
+ cd Gnome2-GConf-${pkgver}
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ cd Gnome2-GConf-${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;
+}