mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-10 08:12:35 +02:00
73 lines
1.8 KiB
Plaintext
73 lines
1.8 KiB
Plaintext
# Automatically generated by apkbuild-cpan, template 3
|
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=perl-encode
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Encode
|
|
pkgver=3.19
|
|
pkgrel=2
|
|
pkgdesc="character encodings in Perl"
|
|
url="https://metacpan.org/release/Encode/"
|
|
arch="all"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
makedepends="perl-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/D/DA/DANKOGAI/Encode-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
# secfixes:
|
|
# 3.12-r0:
|
|
# - CVE-2021-36770
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
}
|
|
|
|
utils() {
|
|
replaces="perl-utils"
|
|
pkgdesc="$pkgdesc (utilities)"
|
|
depends="$pkgname perl"
|
|
provides="$pkgname-piconv"
|
|
mkdir -p "$subpkgdir"/usr
|
|
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
replaces="perl-dev"
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
mv "$pkgdir"/usr/bin/enc2xs "$subpkgdir"/usr/bin
|
|
local file; for file in $(find "$pkgdir" -name "*.e2x"); do
|
|
file=${file#$pkgdir/}
|
|
mkdir -p "$subpkgdir"/${file%/*}
|
|
mv "$pkgdir"/$file "$subpkgdir"/$file
|
|
done
|
|
}
|
|
|
|
doc() {
|
|
default_doc
|
|
replaces="perl-doc"
|
|
local file; for file in $(find "$pkgdir" -name "*.pod"); do
|
|
file=${file#$pkgdir/}
|
|
mkdir -p "$subpkgdir"/${file%/*}
|
|
mv "$pkgdir"/$file "$subpkgdir"/$file
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
0652996d7cd95e02c72128594e79a5b946ee3118e2536e7b5559ccd8a6da1505b23a4c9542266ea11852b792b5130ec21fcd7d99a93bd0a72ea3bcf072cf44aa Encode-3.19.tar.gz
|
|
"
|