wok-6.x annotate libgpg-error/receipt @ rev 24072
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 17:56:16 2021 +0000 (2021-07-07) |
parents | ef282a5e0203 |
children | 76d468568930 |
rev | line source |
---|---|
erjo@180 | 1 # SliTaz package receipt. |
erjo@180 | 2 |
erjo@180 | 3 PACKAGE="libgpg-error" |
Hans-G?nter@23067 | 4 VERSION="1.37" |
erjo@180 | 5 CATEGORY="security" |
Hans-G?nter@21225 | 6 SHORT_DESC="Common error messages for GnuPG." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@14714 | 8 LICENSE="GPL2" |
Hans-G?nter@21225 | 9 WEB_SITE="https://www.gnupg.org/software/libgpg-error/" |
Hans-G?nter@21225 | 10 |
erjo@180 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@21225 | 12 WGET_URL="https://www.gnupg.org/ftp/gcrypt/$PACKAGE/$TARBALL" |
erjo@180 | 13 |
pascal@14714 | 14 DEPENDS="" |
Hans-G?nter@21225 | 15 HOST_ARCH="i486 arm" |
pascal@14714 | 16 |
pascal@24072 | 17 current_version() |
pascal@24072 | 18 { |
pascal@24072 | 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 21 } |
pascal@24072 | 22 |
erjo@180 | 23 # Rules to configure and make the package. |
erjo@180 | 24 compile_rules() |
erjo@180 | 25 { |
al@19226 | 26 # Integrity check: https://www.gnupg.org/download/integrity_check.html |
Hans-G?nter@23067 | 27 echo "6dff83371e0c03fe9ba468cc23d528a8c247785a $SRC/$TARBALL" | sha1sum -c || exit 1 |
al@19226 | 28 |
pankso@15974 | 29 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@21225 | 30 make -j 1 && |
Hans-G?nter@21225 | 31 make DESTDIR=$DESTDIR install |
al@19226 | 32 |
al@19226 | 33 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
erjo@180 | 34 } |
erjo@180 | 35 |
erjo@180 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@180 | 37 genpkg_rules() |
erjo@180 | 38 { |
Hans-G?nter@21225 | 39 mkdir -p $fs/usr/bin $fs/usr/lib |
Hans-G?nter@21225 | 40 mkdir -p $fs/usr/share |
al@19226 | 41 |
Hans-G?nter@21225 | 42 cp -a $install/usr/bin/gpg-error $fs/usr/bin |
Hans-G?nter@21225 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21225 | 44 #cp -a $install/usr/share/man $fs/usr/share |
erjo@180 | 45 } |