wok annotate keepassx/receipt @ rev 24988
Fix perl-gd & tcptrack
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 12 11:01:25 2022 +0000 (2022-05-12) |
parents | ba7cbdb5749c |
children | 59f9785240b0 |
rev | line source |
---|---|
jozee@3040 | 1 # SliTaz package receipt. |
jozee@3040 | 2 |
jozee@3040 | 3 PACKAGE="keepassx" |
erjo@5887 | 4 VERSION="0.4.3" |
jozee@3040 | 5 CATEGORY="graphics" |
jozee@3040 | 6 SHORT_DESC="Cross platform password manager" |
jozee@3040 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
jozee@3040 | 9 #SOURCE="KeePassX" |
jozee@3040 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20669 | 11 WEB_SITE="https://www.keepassx.org/" |
pascal@24978 | 12 WGET_URL="https://www.keepassx.org/releases/$VERSION/$TARBALL" |
jozee@3040 | 13 TAGS="password key" |
jozee@3040 | 14 |
pascal@15002 | 15 DEPENDS="xorg-libXtst libQtCore libQtGui libQtXml gcc-lib-base" |
pascal@15002 | 16 BUILD_DEPENDS="Qt4-dev xorg-libXtst-dev xorg-libXtst qmake libegl-mesa" |
pascal@15002 | 17 |
pascal@24412 | 18 # What is the latest version available today? |
pascal@24412 | 19 current_version() |
pascal@24412 | 20 { |
pascal@24412 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24412 | 22 sed '/released/!d;s|.*KeePassX ||;s| .*||;q' |
pascal@24412 | 23 } |
pascal@24412 | 24 |
jozee@3040 | 25 # Rules to configure and make the package. |
jozee@3040 | 26 compile_rules() |
jozee@3040 | 27 { |
al@17261 | 28 cd $src/src |
jozee@3040 | 29 qmake PREFIX=/usr && |
jozee@3040 | 30 make && |
pascal@15002 | 31 make INSTALL_ROOT=$DESTDIR install |
jozee@3040 | 32 } |
jozee@3040 | 33 |
jozee@3040 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@3040 | 35 genpkg_rules() |
jozee@3040 | 36 { |
al@17261 | 37 mkdir -p \ |
al@17261 | 38 $fs/usr/share/keepassx \ |
al@17261 | 39 $fs/usr/share/licenses \ |
al@17261 | 40 $fs/usr/share/icons/hicolor/16x16/apps $fs/usr/share/icons/hicolor/48x48/apps |
al@17261 | 41 |
pascal@15002 | 42 cp -a $install/usr/bin $fs/usr |
al@17261 | 43 cp -a $install/usr/share/keepassx/icons $fs/usr/share/keepassx |
al@17261 | 44 cp -a $install/usr/share/keepassx/license.html $fs/usr/share/licenses/$PACKAGE.html |
al@17261 | 45 ln -s /usr/share/keepassx/icons/keepassx_small.png $fs/usr/share/icons/hicolor/16x16/apps/keepassx.png |
al@17261 | 46 ln -s /usr/share/keepassx/icons/keepassx_large.png $fs/usr/share/icons/hicolor/48x48/apps/keepassx.png |
jozee@3040 | 47 } |