blob: 883edf519b34e6fe2a0d0110d98150f2a5cc3f67 (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=perl-lingua-en-numbers-ordinate
pkgver=1.03
pkgrel=0
pkgdesc="Go from cardinal (53) to ordinal (53rd)"
url="http://search.cpan.org/dist/Lingua-EN-Numbers-Ordinate"
arch="noarch"
license="GPL"
depends=""
depends_dev="perl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Lingua-EN-Numbers-Ordinate-$pkgver.tar.gz"
_builddir="$srcdir"/Lingua-EN-Numbers-Ordinate-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make && make test || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="27c8c52bf64ab34086151a149a907130 Lingua-EN-Numbers-Ordinate-1.03.tar.gz"
sha256sums="9742b1bc0b5b4f0d81e87e7858c1d20e00e1abd9c52af744ebb4644f46acc23a Lingua-EN-Numbers-Ordinate-1.03.tar.gz"
sha512sums="37dbb2e5b849487d4ecdfaf0868aea6c4231a1bf3d98ab22af5dc55a4ee2c4109d37573cdb7e477644335587c2073750f61f93e63802a2c01019f4fe0d47d559 Lingua-EN-Numbers-Ordinate-1.03.tar.gz"
|