summaryrefslogtreecommitdiff
path: root/extra/perl-net-upnp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/perl-net-upnp/PKGBUILD')
-rw-r--r--extra/perl-net-upnp/PKGBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/extra/perl-net-upnp/PKGBUILD b/extra/perl-net-upnp/PKGBUILD
index 9d2945e27..88a29c7d5 100644
--- a/extra/perl-net-upnp/PKGBUILD
+++ b/extra/perl-net-upnp/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 143946 2011-11-30 21:55:00Z giovanni $
+# $Id: PKGBUILD 193058 2013-08-15 05:11:38Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Drew Gilbert <gilbert dot drew at gmail dot com>
pkgname=perl-net-upnp
pkgver=1.4.2
-pkgrel=4
+pkgrel=5
pkgdesc="Perl Module UPnP"
arch=('i686' 'x86_64')
url="http://search.cpan.org/~skonno/Net-UPnP-1.4.2/"
@@ -22,11 +22,17 @@ build() {
make
}
-package() {
+check() {
cd "${srcdir}/Net-UPnP-${pkgver}"
- make install DESTDIR="${pkgdir}"
+ make test
+}
+
+package() {
+ cd "${srcdir}/Net-UPnP-${pkgver}"
- find ${pkgdir} -name '.packlist' -delete
- find ${pkgdir} -name '*.pod' -delete
+ make install DESTDIR="${pkgdir}"
+
+ # install license file
+ install -Dm644 "README" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}