wok annotate gpgme/receipt @ rev 24482

updated diffutils (3.7 -> 3.8)
author Hans-G?nter Theisgen
date Fri Feb 18 14:45:09 2022 +0100 (2022-02-18)
parents b0c94f3ac5fd
children dbbce7b691de
rev   line source
erjo@1420 1 # SliTaz package receipt.
erjo@1420 2
erjo@1420 3 PACKAGE="gpgme"
Hans-G?nter@22874 4 VERSION="1.13.1"
erjo@1420 5 CATEGORY="security"
erjo@1420 6 SHORT_DESC="C language library that allows to add support for cryptography to a program."
erjo@1420 7 MAINTAINER="erjo@slitaz.org"
al@19226 8 LICENSE="GPL2 LGPL2.1"
al@19226 9 WEB_SITE="https://www.gnupg.org/related_software/gpgme/"
Hans-G?nter@22874 10
erjo@1420 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19226 12 WGET_URL="https://www.gnupg.org/ftp/gcrypt/gpgme/$TARBALL"
erjo@1420 13
Hans-G?nter@22874 14 DEPENDS="gcc83-lib-base gnupg libassuan"
Hans-G?nter@22874 15 BUILD_DEPENDS="gcc83 gnupg libassuan-dev libgpg-error-dev"
erjo@9943 16
pascal@24445 17 # What is the latest version available today?
pascal@24445 18 current_version()
pascal@24445 19 {
pascal@24445 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24445 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24445 22 }
pascal@24445 23
erjo@1420 24 # Rules to configure and make the package.
erjo@1420 25 compile_rules()
erjo@1420 26 {
al@19226 27 # Integrity check: https://www.gnupg.org/download/integrity_check.html
Hans-G?nter@22874 28 echo "f87f34e695e8d74ccc7c8f42864d50630afebb0e $SRC/$TARBALL" | sha1sum -c || exit 1
al@19226 29
Hans-G?nter@22874 30 ./configure \
Hans-G?nter@22874 31 CC=gcc-83 \
Hans-G?nter@22874 32 CXX=g++-83 \
Hans-G?nter@22874 33 $CONFIGURE_ARGS &&
Hans-G?nter@22874 34 make &&
Hans-G?nter@22874 35 make install
erjo@1420 36 }
erjo@1420 37
erjo@1420 38 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1420 39 genpkg_rules()
erjo@1420 40 {
Hans-G?nter@22874 41 mkdir -p $fs/usr/bin
Hans-G?nter@22874 42 mkdir -p $fs/usr/lib
Hans-G?nter@22874 43
Hans-G?nter@22874 44 cp -a $install/usr/bin/gpgme-tool $fs/usr/bin
Hans-G?nter@22874 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
erjo@1420 46 }