aboutsummaryrefslogblamecommitdiffstats
path: root/unmaintained/perl-file-homedir/APKBUILD
blob: 0ae2a164ea44993aabac786d2c30a8908711d3c3 (plain) (tree)






































                                                                                   
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-file-homedir
_pkgreal=File-HomeDir
pkgver=1.00
pkgrel=0
pkgdesc="Find your home and other directories on any platform"
url="http://search.cpan.org/dist/File-HomeDir/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-file-which"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="aa290cab9db52e2f76280fd1febf794e  File-HomeDir-1.00.tar.gz"