aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-file-chdir/APKBUILD
blob: fe8cf9ecaa5484fea3e990b1d6db628d38e8855c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: 
# Maintainer: 
pkgname=perl-file-chdir
_pkgreal=File-chdir
pkgver=0.1010
pkgrel=0
pkgdesc="a more sensible way to change directories"
url="http://search.cpan.org/dist/File-chdir/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_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="aacfafa4a8f13d45be67451e0f9b483e  File-chdir-0.1010.tar.gz"
sha256sums="efc121f40bd7a0f62f8ec9b8bc70f7f5409d81cd705e37008596c8efc4452b01  File-chdir-0.1010.tar.gz"
sha512sums="0a9390b48d49c2ac0e2f8b409396a6a2ea3518823d1b6d8c23bbf19a438b92d1e784dcf3bc7c0d43b0365b0620557aea1f8d9ef224b68ca9c472fefa8fe1adab  File-chdir-0.1010.tar.gz"