aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-lingua-en-numbers-ordinate
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-12 01:52:06 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-12 01:52:07 +0000
commit2f5f42d4e2a823ef6018afb79d0263bce15e7a48 (patch)
tree21114a47a85db748fd02ce87ec3afd34a208f92e /community/perl-lingua-en-numbers-ordinate
parent8697abb4b2d4e0090ebf23d3b6cd80b7ef2994bc (diff)
downloadaports-2f5f42d4e2a823ef6018afb79d0263bce15e7a48.tar.bz2
aports-2f5f42d4e2a823ef6018afb79d0263bce15e7a48.tar.xz
community/perl-[l-m]*: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - rename _builddir to builddir - add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-lingua-en-numbers-ordinate')
-rw-r--r--community/perl-lingua-en-numbers-ordinate/APKBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/community/perl-lingua-en-numbers-ordinate/APKBUILD b/community/perl-lingua-en-numbers-ordinate/APKBUILD
index 6f94a39250..e317756ba9 100644
--- a/community/perl-lingua-en-numbers-ordinate/APKBUILD
+++ b/community/perl-lingua-en-numbers-ordinate/APKBUILD
@@ -2,41 +2,33 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-lingua-en-numbers-ordinate
pkgver=1.04
-pkgrel=0
+pkgrel=1
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
-}
+builddir="$srcdir/Lingua-EN-Numbers-Ordinate-$pkgver"
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="8d98839010f7f5cb3b2f593d2e00b505 Lingua-EN-Numbers-Ordinate-1.04.tar.gz"
-sha256sums="26973c2eb43672c3f61ad7d3fef12ef1c64a034da494a0ee0d910c3e0808019f Lingua-EN-Numbers-Ordinate-1.04.tar.gz"
sha512sums="f8f5cbfc9ae1d7b4e5e134c8fb089f6ec4ecfd90e0168ece874b007ae8b74936e5aecc38344c036c0845ab7a8c192d07c5a2cdad8f96176c71e89e2e4ae1211e Lingua-EN-Numbers-Ordinate-1.04.tar.gz"