aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-12 01:59:52 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-12 01:59:54 +0000
commita40c61b24039bdde10c7fb4934b56663a8a5ff78 (patch)
tree520b5deb093447e1d35dd805edba490a10d5ba3a /community
parent2f5f42d4e2a823ef6018afb79d0263bce15e7a48 (diff)
downloadaports-a40c61b24039bdde10c7fb4934b56663a8a5ff78.tar.bz2
aports-a40c61b24039bdde10c7fb4934b56663a8a5ff78.tar.xz
community/perl-lingua-preferred: modernize and add check
Diffstat (limited to 'community')
-rw-r--r--community/perl-lingua-preferred/APKBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/community/perl-lingua-preferred/APKBUILD b/community/perl-lingua-preferred/APKBUILD
index c3c40f962e..a2a4e8f718 100644
--- a/community/perl-lingua-preferred/APKBUILD
+++ b/community/perl-lingua-preferred/APKBUILD
@@ -2,41 +2,33 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-lingua-preferred
pkgver=0.2.4
-pkgrel=0
+pkgrel=1
pkgdesc="Pick a language based on user's preferences"
url="http://search.cpan.org/dist/Lingua-Preferred"
arch="noarch"
license="GPL"
-depends=""
depends_dev="perl-dev"
makedepends="$depends_dev"
-install=""
subpackages="$pkgname-doc"
source="http://www.cpan.org/authors/id/E/ED/EDAVIS/Lingua-Preferred-$pkgver.tar.gz"
-_builddir="$srcdir"/Lingua-Preferred-$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-Preferred-$pkgver"
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || 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="37e883fafb05b1439de1121f41e8ad75 Lingua-Preferred-0.2.4.tar.gz"
-sha256sums="fa58c4fac6b676f78caad6b472a785dd0c8fa67004a62294fbcfa3a3eb243c83 Lingua-Preferred-0.2.4.tar.gz"
sha512sums="6946b2b8d5978c516688a63bd2126700f8ab0137d51959f0b8c2565c08f25d20dc3fe5f81c6473c3ef5d1faf94a6bd4510959f730cc104b61671bd9436de6353 Lingua-Preferred-0.2.4.tar.gz"