diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-30 20:34:39 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-30 20:34:39 (GMT) |
commit | a8cabee3a30a3948536a02cced6d0ae8ebe515ed (patch) | |
tree | 2f95f195d093fce23f7bc4dac93b831b2cdc8fd7 | |
parent | c1094fbdd45e06847953f671b416cf58f66f45ad (diff) | |
download | linhes_pkgbuild-a8cabee3a30a3948536a02cced6d0ae8ebe515ed.zip linhes_pkgbuild-a8cabee3a30a3948536a02cced6d0ae8ebe515ed.tar.gz linhes_pkgbuild-a8cabee3a30a3948536a02cced6d0ae8ebe515ed.tar.bz2 |
perl-device-serialport: update to 1.04
-rw-r--r-- | abs/core/perl_modules/perl-device-serialport/PKGBUILD | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/abs/core/perl_modules/perl-device-serialport/PKGBUILD b/abs/core/perl_modules/perl-device-serialport/PKGBUILD index 7f0ba54..c714f61 100644 --- a/abs/core/perl_modules/perl-device-serialport/PKGBUILD +++ b/abs/core/perl_modules/perl-device-serialport/PKGBUILD @@ -1,25 +1,36 @@ -# $Id: PKGBUILD 71775 2012-06-02 10:30:18Z bluewind $ +# $Id$ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Ross melin <rdmelin@gmail.com> pkgname=perl-device-serialport pkgver=1.04 -pkgrel=4 +pkgrel=11 pkgdesc="POSIX clone of Win32::SerialPort" -arch=('i686' 'x86_64') +arch=('x86_64') url="http://search.cpan.org/dist/Device-SerialPort" license=('GPL' 'PerlArtistic') depends=('perl') options=('!emptydirs') -source=(http://www.cpan.org/authors/id/C/CO/COOK/Device-SerialPort-$pkgver.tar.gz) -md5sums=('82c698151f934eb28c65d1838cee7d9e') +source=(https://www.cpan.org/authors/id/C/CO/COOK/Device-SerialPort-$pkgver.tar.gz) +sha256sums=('d392567cb39b4ea606c0e0acafd8ed72320311b995336ece5fcefcf9b150e9d7') build() { - cd $srcdir/Device-SerialPort-$pkgver + cd "$srcdir"/Device-SerialPort-$pkgver eval `perl -V:archname` PERL_MM_USE_DEFAULT=1 /usr/bin/perl Makefile.PL INSTALLDIRS=vendor make - make DESTDIR=$pkgdir install - find $pkgdir -name '.packlist' -delete - find $pkgdir -name '*.pod' -delete +} + +package() { + cd "$srcdir"/Device-SerialPort-$pkgver + make DESTDIR="$pkgdir" install + find "$pkgdir" -name '.packlist' -delete + find "$pkgdir" -name '*.pod' -delete +# 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; } |