wok annotate pwsafe/receipt @ rev 24985

Add python-future
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:58 2022 +0000 (2022-05-10)
parents 86790a278e70
children 76c41f0eab0e
rev   line source
rocky@3495 1 # SliTaz package receipt.
rocky@3495 2
rocky@3495 3 PACKAGE="pwsafe"
rocky@3495 4 VERSION="0.2.0"
rocky@3495 5 CATEGORY="utilities"
rocky@3495 6 SHORT_DESC="pwsafe is commandline program that manages encrypted password databases."
rocky@3495 7 MAINTAINER="rocky@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@15000 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/pwsafe"
pascal@15000 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15000 12
pascal@5005 13 DEPENDS="readline ncurses xorg-libSM xorg-libICE xorg-libXmu xorg-libX11 \
pascal@5005 14 libcrypto gcc-lib-base xorg-libXt xorg-libXext xorg-libXau xorg-libXdmcp"
rocky@3495 15 BUILD_DEPENDS="openssl-dev readline-dev ncurses-dev"
rocky@3495 16
pascal@24500 17 # What is the latest version available today?
pascal@24500 18 current_version()
pascal@24500 19 {
pascal@24500 20 wget -O - https://github.com/pwsafe/pwsafe/releases 2>/dev/null | \
pascal@24500 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24500 22 }
pascal@24500 23
rocky@3495 24 # Rules to configure and make the package.
rocky@3495 25 compile_rules()
rocky@3495 26 {
rocky@3495 27 cd $src
rocky@3495 28 ./configure --prefix=/usr \
rocky@3495 29 --infodir=/usr/share/info \
rocky@3495 30 --mandir=/usr/share/man \
rocky@3495 31 $CONFIGURE_ARGS &&
rocky@3495 32 make &&
pascal@15000 33 make DESTDIR=$DESTDIR install
rocky@3495 34 }
rocky@3495 35
rocky@3495 36 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@3495 37 genpkg_rules()
rocky@3495 38 {
rocky@3495 39 mkdir -p $fs/usr
pascal@15000 40 cp -a $install/usr/bin $fs/usr
rocky@3495 41 }
rocky@3495 42
rocky@3495 43 post_install()
rocky@3495 44 {
pascal@18730 45 chmod u+s "$1/usr/bin/pwsafe"
rocky@3495 46 }