[arch-dev-public] [arch-commits] Commit in (42 files)

Florian Pritz bluewind at xinu.at
Tue Jun 2 20:28:11 UTC 2015


On 02.06.2015 18:32, Sergej Pupykin wrote:
> Modified: perl-berkeleydb/trunk/PKGBUILD
> ===================================================================
> --- perl-berkeleydb/trunk/PKGBUILD	2015-06-02 16:32:35 UTC (rev 134558)
> +++ perl-berkeleydb/trunk/PKGBUILD	2015-06-02 16:32:53 UTC (rev 134559)
> @@ -22,6 +22,15 @@
>  }
>  
>  package() {
> +# 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;
> +
> +
>    _dbver1=`pacman -Q db | cut -d\  -f2 | cut -d- -f1 | cut -f1 -d.`
>    _dbver2=`pacman -Q db | cut -d\  -f2 | cut -d- -f1 | cut -f2 -d.`
>    depends=('perl' "db>=${_dbver1}.${_dbver2}" "db<${_dbver1}.$(expr $_dbver2 + 1)")

Please include the template at the end of the package() function. It
checks for .so files in $pkgdir and won't find any if it's at the beginning.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-dev-public/attachments/20150602/7ba66f34/attachment.asc>


More information about the arch-dev-public mailing list