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 md5sums=('a7d7a36fa6905bded4f6b7da94e37532')
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}"