wok annotate ratpoison/receipt @ rev 25652

Up ntfs-3g (2022.10.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 06 11:59:08 2024 +0000 (9 months ago)
parents c7002bc9b6c7
children
rev   line source
gokhlayeh@8341 1 # SliTaz package receipt.
gokhlayeh@8341 2
gokhlayeh@8341 3 PACKAGE="ratpoison"
Hans-G?nter@21831 4 VERSION="1.4.9"
gokhlayeh@8341 5 CATEGORY="x-window"
Hans-G?nter@21831 6 TAGS="window-manager"
Hans-G?nter@21831 7 SHORT_DESC="An extremely light-weight window manager, using only keyboard."
gokhlayeh@8341 8 MAINTAINER="gokhlayeh@slitaz.org"
pascal@15600 9 LICENSE="GPL2"
Hans-G?nter@21831 10 WEB_SITE="https://www.nongnu.org/ratpoison/"
gokhlayeh@8341 11
Hans-G?nter@21831 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@21831 13 WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
Hans-G?nter@21831 14
Hans-G?nter@21831 15 DEPENDS="microperl xorg-libXinerama xorg-libXtst"
pascal@15600 16
pascal@24415 17 # What is the latest version available today?
pascal@24415 18 current_version()
pascal@24415 19 {
pascal@24415 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24415 21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24415 22 }
pascal@24415 23
gokhlayeh@8341 24 # Rules to configure and make the package.
gokhlayeh@8341 25 compile_rules()
gokhlayeh@8341 26 {
Hans-G?nter@21831 27 ./configure &&
Hans-G?nter@21831 28 make CFLAGS="$CFLAGS -DHAVE_GETLINE" &&
Hans-G?nter@21831 29 make install
gokhlayeh@8341 30 }
gokhlayeh@8341 31
gokhlayeh@8341 32 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@8341 33 genpkg_rules()
gokhlayeh@8341 34 {
gokhlayeh@8341 35 mkdir -p $fs/usr/share
Hans-G?nter@21831 36
Hans-G?nter@21831 37 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21831 38 cp -a $install/usr/share/ratpoison $fs/usr/share
gokhlayeh@8341 39 }