[arch-commits] Commit in perl-mail-spf/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Mon May 13 01:23:04 EDT 2013


    Date: Monday, May 13, 2013 @ 07:23:04
  Author: eric
Revision: 185302

upgpkg: perl-mail-spf 2.8.0-2

Move binaries in /usr/sbin to /usr/bin, PKGBUILD clean up

Modified:
  perl-mail-spf/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 04:58:41 UTC (rev 185301)
+++ PKGBUILD	2013-05-13 05:23:04 UTC (rev 185302)
@@ -6,36 +6,36 @@
 pkgname=perl-mail-spf
 _realname=Mail-SPF
 pkgver=2.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Perl module that provides SPF support"
 arch=('any')
 license=('custom')
 url="http://search.cpan.org/dist/${_realname}/"
-# Used for testing only.
+depends=('perl-error' 'perl-netaddr-ip' 'perl-uri' 'perl-net-dns' 'perl')
 makedepends=('perl-net-dns-resolver-programmable')
-depends=('perl-error' 'perl-netaddr-ip' 'perl-uri' 'perl-net-dns' 'perl')
 conflicts=('perl-mail-spf-query')
+options=('!emptydirs')
 source=("http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/${_realname}-v${pkgver}.tar.gz")
-options=('!emptydirs')
 md5sums=('4f5bbd59058da680bfd9ff18e31489b7')
 
+prepare() {
+  cd ${_realname}-v${pkgver}
+  sed -i 's|/usr/sbin|/usr/bin|' Build.PL
+}
+
 build() {
-  cd ${srcdir}/${_realname}-v${pkgver}
-  # Fix required perl-net-dns-resolver-programmable version
-  #sed "s/=> 'v0.002.1',/=> 0,/" -i Build.PL
+  cd ${_realname}-v${pkgver}
   perl Makefile.PL INSTALLDIRS=vendor
   make
 }
 
 check() {
-  cd ${srcdir}/${_realname}-v${pkgver}
+  cd ${_realname}-v${pkgver}
   make test
 }
 
 package() {
-  cd ${srcdir}/${_realname}-v${pkgver}
-  make DESTDIR=${pkgdir} install
-  find ${pkgdir} -name '.packlist' -delete
-  find ${pkgdir} -name 'perllocal.pod' -delete
-  install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+  cd ${_realname}-v${pkgver}
+  make DESTDIR="${pkgdir}"  sbin=/usr/bin install
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list