aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-mail-spf/APKBUILD
blob: 8dc82627dcdd2b67339dfefe764803a241c1b331 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                
            
        

                                                                      
             
                          

                                                                     


                          

                                                                                               
 
                                       








                                                                        
         
                       

                                                                             



                       


                                      

                                                                 
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer:  Leonardo Arena <rnalrd@gmail.com>
pkgname=perl-mail-spf
_realname=Mail-SPF
pkgver=2.007
pkgrel=1
pkgdesc="An object-oriented implementation of Sender Policy Framework"
url="http://search.cpan.org/~jmehnle/Mail-SPF-v2.006/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl perl-error perl-net-dns perl-uri-escape perl-netaddr-ip
	perl-net-dns-resolver-programmable"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/$_realname-v$pkgver.tar.gz
	build.patch"

_builddir="$srcdir/$_realname-v$pkgver"
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="67dccdc91e3264679a0e17d493d3cc30  Mail-SPF-v2.007.tar.gz
7a32f8edc2aee8c6db0d8c2c84a570aa  build.patch"