summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 10 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9d471b14b15..7913349858b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=perl-gnome2-gconf
pkgver=1.044
-pkgrel=3
+pkgrel=4
pkgdesc="Perl interface to the GConf configuration database"
arch=('i686' 'x86_64')
license=("GPL" "PerlArtistic")
@@ -13,11 +13,17 @@ depends=('gtk2-perl' 'gconf' 'glib-perl')
makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
options=('!emptydirs')
provides=("gconf-perl")
-source=("http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gnome2-GConf-${pkgver}.tar.gz")
-sha256sums=('875cb87bff28340c15c9bda9b645b5af8002d9b471363d5475532bc1d34e1df2')
+source=("http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gnome2-GConf-${pkgver}.tar.gz"
+ removed-gconf_engine_key_is_writable.patch)
+sha256sums=('875cb87bff28340c15c9bda9b645b5af8002d9b471363d5475532bc1d34e1df2'
+ '4e860bb4978642b8360093ab21697ba9d10156c65293b8b6ee93463a86edce6e')
+
+prepare() {
+ cd Gnome2-GConf-${pkgver}
+ patch -Np1 -i "$srcdir"/removed-gconf_engine_key_is_writable.patch
+}
build() {
- # Workaround for Perl 5.26
export PERL_USE_UNSAFE_INC=1
cd Gnome2-GConf-${pkgver}
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
@@ -27,11 +33,4 @@ build() {
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;
}