blob: 863b0ad33a4a8036588b9fad551604a07ac1768d (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Gavin Costello <gavcos at gmail dot com>
# Contributor:
_author=mattlaw
_authorUP=MATTLAW
_perlmod=File-BOM
pkgname=perl-file-bom
pkgver=0.15
pkgrel=1
pkgdesc='Utilities for handling Byte Order Marks'
arch=('any')
url="http://search.cpan.org/~$_author/$_perlmod-$pkgver/lib/File/BOM.pm"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("http://search.cpan.org/CPAN/authors/id/M/MA/$_authorUP/$_perlmod-$pkgver.tar.gz")
md5sums=('c30a7364cdab76f656253280a7a2b63d')
build() {
cd "$srcdir/$_perlmod-$pkgver"
# Install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
## For packages with Build.PL, do this instead:
# perl Build.PL installdirs=vendor destdir="$pkgdir/"
# perl Build
}
package() {
cd "$srcdir/$_perlmod-$pkgver"
make install DESTDIR="$pkgdir/"
## For packages with Build.PL, do this instead:
# perl Build install
}
# vim:set ts=2 sw=2 et:
|