wok-6.x annotate perl-crypt-ssleay/receipt @ rev 24132
Up tazinst (114)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 23 15:07:33 2021 +0000 (2021-10-23) |
parents | 20661c276bcf |
children | e717a4953b0e |
rev | line source |
---|---|
pascal@11256 | 1 # SliTaz package receipt. |
pascal@11256 | 2 |
pascal@11256 | 3 PACKAGE="perl-crypt-ssleay" |
pascal@11256 | 4 VERSION="0.58" |
pascal@11256 | 5 CATEGORY="development" |
pascal@11256 | 6 SHORT_DESC="Crypt::SSLeay module is a Perl extension." |
pascal@11256 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
pascal@11256 | 9 DEPENDS="perl" |
pascal@11256 | 10 BUILD_DEPENDS="perl" |
pascal@11256 | 11 SOURCE="Crypt-SSLeay" |
pascal@11256 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24103 | 13 WEB_SITE="https://metacpan.org/dist/Crypt-SSLeay" |
pascal@20682 | 14 WGET_URL="https://metacpan.org/CPAN/authors/id/N/NA/NANIS/$TARBALL" |
pascal@11256 | 15 |
pascal@11256 | 16 DEPENDS="openssl" |
pascal@11256 | 17 BUILD_DEPENDS="openssl-dev" |
pascal@11256 | 18 |
pascal@24103 | 19 current_version() |
pascal@24103 | 20 { |
pascal@24103 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24103 | 22 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24103 | 23 } |
pascal@24103 | 24 |
pascal@11256 | 25 # Rules to configure and make the package. |
pascal@11256 | 26 compile_rules() |
pascal@11256 | 27 { |
pascal@20212 | 28 sed -i 's|uname -m|echo i486|' Makefile.PL |
pascal@11256 | 29 yes '' | perl Makefile.PL --default && |
pascal@11256 | 30 make && |
pascal@14702 | 31 make DESTDIR=$DESTDIR install |
pascal@11256 | 32 } |
pascal@11256 | 33 |
pascal@11256 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11256 | 35 genpkg_rules() |
pascal@11256 | 36 { |
pascal@11256 | 37 mkdir -p $fs/usr |
pascal@14702 | 38 cp -a $install/usr/lib $fs/usr |
pascal@11256 | 39 } |
pascal@11256 | 40 |