OCaml 4.14.0 rebuild
[arch-packages.git] / perl-sort-key / trunk / PKGBUILD
blobd8d944282be2368a17ae21a635957742c064142c
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
2 # Contributor: Piotr Rogoza <piotr.r.public at gmail dot com>
3 # Contributor: Alessandro Sagratini <ale_sagra at hotmail dot com>
5 pkgname=perl-sort-key
6 pkgver=1.33
7 pkgrel=11
8 _author="S/SA/SALVA"
9 _perlmod="Sort-Key"
10 pkgdesc="Sort::Key - the fastest way to sort anything in Perl"
11 arch=("x86_64")
12 url=https://search.cpan.org/dist/Sort-Key
13 license=('GPL' 'PerlArtistic')
14 depends=(perl)
15 options=(!emptydirs)
16 source=("https://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
17 sha256sums=('ed6a4ccfab094c9cd164f564024e98bd21d94f4312ccac4d6246d22b34081acf')
19 build() {
20     cd "${srcdir}/${_perlmod}-${pkgver}"
22     # install module in vendor directories.
23     PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
24     make
27 check() {
28     cd "${srcdir}/${_perlmod}-${pkgver}"
29     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
30     export PERL_MM_USE_DEFAULT=1
31     make test
34 package() {
35     cd "${srcdir}/${_perlmod}-${pkgver}"
36     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
37     make install INSTALLDIRS=vendor DESTDIR="$pkgdir"