1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Dale Blount <dale@archlinux.org>
4 pkgname=perl-sys-hostname-long
5 _realname=Sys-Hostname-Long
8 pkgdesc="Perl module getting a full hostname"
10 license=('PerlArtistic')
11 url="https://search.cpan.org/dist/${_realname}/"
13 checkdepends=('inetutils')
14 options=('!emptydirs')
15 source=(https://search.cpan.org/CPAN/authors/id/S/SC/SCOTT/${_realname}-${pkgver}.tar.gz)
16 sha256sums=('e9186df3706a877efd6149f2c711d6cf87dd6cf72f6ab935ba8121b225b265cb')
19 cd "${srcdir}/${_realname}-${pkgver}"
20 # install module in vendor directories.
21 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
26 cd "${srcdir}/${_realname}-${pkgver}"
31 cd "${srcdir}/${_realname}-${pkgver}"
32 make install DESTDIR="${pkgdir}"