aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-yaml-syck/APKBUILD
blob: 68d66ab71274d0b506dd3ff7e1a394728132aaa1 (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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-yaml-syck
_pkgreal=YAML-Syck
pkgver=1.25
pkgrel=0
pkgdesc="Fast, lightweight YAML loader and dumper"
url="http://search.cpan.org/dist/YAML-Syck/"
arch="all"
license="mit"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_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="847f315cbd074b42c44f360383ac13e9  YAML-Syck-1.25.tar.gz"
sha256sums="13a3a123dc7eb557408b4021180c86700b984a9ce36c85222a6a48cfcb046b17  YAML-Syck-1.25.tar.gz"
sha512sums="762b6bd75917c24e44d6ca69285c8ee0613fb302154d44989f38e26e13956037d0aba188db901e26425936605a30e9decac11d7f0b80b34842bd51a2355978e9  YAML-Syck-1.25.tar.gz"