wok annotate perl-dbd-mysql/receipt @ rev 25063
nfs-utils: update web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 07 20:10:22 2022 +0000 (2022-06-07) |
parents | 686da740b4f3 |
children | 0af8df0b46fc |
rev | line source |
---|---|
pascal@1600 | 1 # SliTaz package receipt. |
pascal@1600 | 2 |
pascal@1600 | 3 PACKAGE="perl-dbd-mysql" |
Hans-G?nter@23314 | 4 VERSION="4.050" |
pascal@1600 | 5 CATEGORY="development" |
Hans-G?nter@23314 | 6 SHORT_DESC="Perl extension DBD::mysql." |
pascal@1600 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23314 | 9 WEB_SITE="https://metacpan.org/release/DBD-mysql" |
Hans-G?nter@23314 | 10 |
pascal@1600 | 11 SOURCE="DBD-mysql" |
pascal@1600 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23314 | 13 WGET_URL="https://cpan.metacpan.org/authors/id/D/DV/DVEEDEN/$TARBALL" |
pascal@1600 | 14 |
Hans-G?nter@23314 | 15 DEPENDS="libmysqlclient perl perl-dbi-dbd zlib" |
Hans-G?nter@23314 | 16 BUILD_DEPENDS="mysql-dev perl perl-dbi-dbd perl-devel-checklib" |
pascal@13319 | 17 |
pascal@24102 | 18 current_version() |
pascal@24102 | 19 { |
pascal@24102 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 21 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 22 } |
pascal@24102 | 23 |
pascal@1600 | 24 # Rules to configure and make the package. |
pascal@1600 | 25 compile_rules() |
pascal@1600 | 26 { |
Hans-G?nter@23314 | 27 perl Makefile.PL && |
Hans-G?nter@23314 | 28 make && |
pascal@13319 | 29 make DESTDIR=$DESTDIR install |
pascal@1600 | 30 } |
pascal@1600 | 31 |
pascal@1600 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1600 | 33 genpkg_rules() |
pascal@1600 | 34 { |
pascal@1600 | 35 mkdir -p $fs/usr |
Hans-G?nter@23314 | 36 cp -a $install/usr/lib $fs/usr |
pascal@1600 | 37 } |