archrelease: copy trunk to testing-x86_64
[arch-packages.git] / perl-sys-hostname-long / trunk / PKGBUILD
blob807d71b26dee7092fb16cf6c895921b61567c5dc
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
6 pkgver=1.5
7 pkgrel=10
8 pkgdesc="Perl module getting a full hostname"
9 arch=('any')
10 license=('PerlArtistic')
11 url="https://search.cpan.org/dist/${_realname}/"
12 depends=('perl')
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')
18 build() {
19   cd "${srcdir}/${_realname}-${pkgver}"
20   # install module in vendor directories.
21   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
22   make
25 check() {
26   cd "${srcdir}/${_realname}-${pkgver}"
27   make test
30 package() {
31   cd "${srcdir}/${_realname}-${pkgver}"
32   make install DESTDIR="${pkgdir}"