2020-11-22 12:04:47 +01:00
|
|
|
# Description: Perl interface for cyclic redundancy check generation
|
|
|
|
# URL: https://metacpan.org/pod/distribution/String-CRC32/CRC32.pod
|
2021-02-10 12:11:57 +01:00
|
|
|
# Maintainer: UNMAINTAINED
|
2020-11-22 12:04:47 +01:00
|
|
|
|
|
|
|
name=p5-string-crc32
|
2021-02-04 08:31:08 +01:00
|
|
|
version=2.100
|
2020-11-22 12:04:47 +01:00
|
|
|
release=1
|
|
|
|
source=(https://cpan.metacpan.org/authors/id/L/LE/LEEJO/String-CRC32-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd String-CRC32-$version
|
|
|
|
|
|
|
|
perl Makefile.PL
|
|
|
|
|
|
|
|
# remove default -pipe flag
|
|
|
|
sed -i -e '/CCFLAGS = /s/ -pipe / /' Makefile
|
|
|
|
|
|
|
|
make OPTIMIZE="$CFLAGS"
|
|
|
|
make install DESTDIR=$PKG
|
|
|
|
|
|
|
|
# remove perlcrap
|
|
|
|
find $PKG -name perllocal.pod \
|
|
|
|
-o -name "*.bs" \
|
|
|
|
-o -name .packlist \
|
|
|
|
-o -name autosplit.ix \
|
|
|
|
| xargs rm -f
|
|
|
|
|
|
|
|
# remove empty dirs
|
|
|
|
find $PKG -depth -type d -empty -delete
|
|
|
|
}
|