aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-extutils-pkgconfig/APKBUILD
blob: 280b4fbb8f13e8831407760dfee61c6dd865615d (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: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-extutils-pkgconfig
_pkgreal=ExtUtils-PkgConfig
pkgver=1.15
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/ExtUtils-PkgConfig/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/$_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="1872e659cf2bb0b2471d75fce735e622  ExtUtils-PkgConfig-1.15.tar.gz"
sha256sums="69b3192e22b37e930238f332b5bfa9e14e69bec1427ba70c8515fbba1137b0b3  ExtUtils-PkgConfig-1.15.tar.gz"
sha512sums="975cc64d07f488bd0b89516ed3304797f8d74774f49e888e72788ef54f432ebb77a70af610e25f275baaea08a7756ce78c964e28bf2c853783a35e67b4aeeeaf  ExtUtils-PkgConfig-1.15.tar.gz"