mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Automatically generated by apkbuild-cpan, template 3
|
|
# Contributor: Timothy Legge <timlegge@gmail.com>
|
|
# Maintainer: Timothy Legge <timlegge@gmail.com>
|
|
pkgname=perl-barcode-zbar
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Barcode-ZBar
|
|
pkgver=0.10
|
|
pkgrel=3
|
|
pkgdesc="Perl module for Barcode-ZBar"
|
|
url="https://metacpan.org/release/Barcode-ZBar/"
|
|
arch="all"
|
|
license="LGPL-2.1-only"
|
|
depends="perl"
|
|
makedepends="zbar-dev perl-dev"
|
|
checkdepends="imagemagick imagemagick-perlmagick"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/Barcode-ZBar-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
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
|
|
}
|
|
|
|
sha512sums="
|
|
3d4655133389656288e69612cfd8fbed246802aee4001802d39829b03d8802d6f693ebfd9e454d298861bd7da2f7056a4e7fd616764ac2ffc10c46c046d02182 Barcode-ZBar-0.10.tar.gz
|
|
"
|