mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 13:16:45 +02:00
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-list-binarysearch
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=List-BinarySearch
|
|
pkgver=0.25
|
|
pkgrel=0
|
|
pkgdesc="Binary Search within a sorted array"
|
|
url="https://metacpan.org/release/List-BinarySearch/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
makedepends="perl-list-binarysearch-xs"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/D/DA/DAVIDO/List-BinarySearch-$pkgver.tar.gz
|
|
documentation.patch
|
|
"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
|
INSTALLDIRS=vendor \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
cc2b3234fc6f14ce656f2744eb3612afea970b64b46e7288c16047c73db8095ca32aad735660a5152d1cfb8c2ee1202ec2b6a5fe151b81ccf17f4c84ced87596 List-BinarySearch-0.25.tar.gz
|
|
1a25175b0d475830d9531afbf6f61a4fa8d256119dfc64d90d13f6c4c27228d47ea7d5a97919853d0997512697def158d1294cb45e52cb5d52ab00268fd9a20b documentation.patch
|
|
"
|