wok annotate xlockmore/receipt @ rev 25123

updated ansible (2.9.10 -> 2.11.6)
author Hans-G?nter Theisgen
date Tue Jun 28 16:17:54 2022 +0100 (2022-06-28)
parents 535c806240cc
children
rev   line source
rocky@3627 1 # SliTaz package receipt.
rocky@3627 2
rocky@3627 3 PACKAGE="xlockmore"
pascal@20859 4 VERSION="5.56"
rocky@3627 5 CATEGORY="utilities"
rocky@3627 6 SHORT_DESC="X Window System Lock Screen."
rocky@3627 7 MAINTAINER="rocky@slitaz.org"
pascal@15601 8 LICENSE="BSD"
pascal@20859 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@20859 10 WEB_SITE="http://sillycycle.com/xlockmore.html"
pascal@24976 11 WGET_URL="http://sillycycle.com/xlock/recent-releases/$TARBALL"
rocky@3627 12
pascal@15601 13 DEPENDS="xorg-libX11 freetype freetype1"
pascal@19724 14 BUILD_DEPENDS="xorg-libXdmcp-dev xorg-libXpm-dev xorg-libX11-dev \
pascal@19724 15 xorg-libXt-dev openmotif-dev"
pascal@15601 16
pascal@24465 17 # What is the latest version available today?
pascal@24465 18 current_version()
pascal@24465 19 {
pascal@24465 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24465 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24465 22 }
pascal@24465 23
rocky@3627 24 # Rules to configure and make the package.
rocky@3627 25 compile_rules()
rocky@3627 26 {
pascal@20860 27 sed -i 's|__GNUC_MINOR__ >= 4|__GNUC_MINOR__ >= 7|' modes/strange.c
rocky@3627 28 ./configure --prefix=/usr \
rocky@3627 29 --infodir=/usr/share/info \
rocky@3627 30 --mandir=/usr/share/man \
rocky@3627 31 $CONFIGURE_ARGS &&
rocky@3627 32 make &&
slaxemulator@11319 33 mkdir -p $DESTDIR/usr/share/X11/app-defaults/ \
slaxemulator@11319 34 $DESTDIR/usr/bin
slaxemulator@11319 35 cp -f xlock/xlock $DESTDIR/usr/bin/
slaxemulator@11319 36 cp -f xlock/XLock.ad $DESTDIR/usr/share/X11/app-defaults/XLock
rocky@3627 37 }
rocky@3627 38
rocky@3627 39 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@3627 40 genpkg_rules()
rocky@3627 41 {
rocky@3627 42 mkdir -p $fs
pascal@15601 43 cp -a $install/usr $fs
rocky@3627 44 }
rocky@3627 45
rocky@3627 46 post_install()
rocky@3627 47 {
pascal@18730 48 chmod u+s "$1/usr/bin/xlock"
rocky@3627 49 }