summaryrefslogtreecommitdiff
path: root/community/perl-device-serialport/PKGBUILD
blob: 7f0ba54d64e6c877bbe02bb91bc7ee401451bf83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id: PKGBUILD 71775 2012-06-02 10:30:18Z bluewind $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Ross melin <rdmelin@gmail.com>

pkgname=perl-device-serialport
pkgver=1.04
pkgrel=4
pkgdesc="POSIX clone of Win32::SerialPort"
arch=('i686' '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')

build() {
  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
}