wok annotate slock/receipt @ rev 25076

Up marlin (886)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 08:17:07 2022 +0000 (2022-06-14)
parents 0601356024df
children
rev   line source
mallory@1169 1 # SliTaz package receipt.
mallory@1169 2
mallory@1169 3 PACKAGE="slock"
Hans-G?nter@21916 4 VERSION="1.4"
mallory@1169 5 CATEGORY="security"
mallory@1169 6 SHORT_DESC="Simple X display locker."
mallory@1169 7 MAINTAINER="mallory@sweetpeople.org"
pascal@15593 8 LICENSE="MIT"
Hans-G?nter@21916 9 WEB_SITE="https://tools.suckless.org/slock/"
Hans-G?nter@21916 10
mallory@1169 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21916 12 WGET_URL="https://dl.suckless.org/tools/$TARBALL"
mallory@1169 13
pascal@15593 14 DEPENDS="xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext"
Hans-G?nter@21916 15 BUILD_DEPENDS="xorg-libX11-dev xorg-libXext-dev xorg-xextproto xorg-xproto"
Hans-G?nter@21916 16
Hans-G?nter@21916 17 HOST_ARCH="i486 arm"
pascal@15593 18
pascal@24462 19 # What is the latest version available today?
pascal@24462 20 current_version()
pascal@24462 21 {
pascal@24462 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24462 23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24462 24 }
pascal@24462 25
mallory@1169 26 # Rules to configure and make the package.
mallory@1169 27 compile_rules()
mallory@1169 28 {
Hans-G?nter@21916 29 make PREFIX=/usr &&
Hans-G?nter@21916 30 make install DESTDIR=$DESTDIR PREFIX=/usr
mallory@1169 31 }
mallory@1169 32
mallory@1169 33 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@1169 34 genpkg_rules()
mallory@1169 35 {
mallory@1169 36 mkdir -p $fs/usr
pascal@15593 37 cp -a $install/usr/bin $fs/usr
mallory@1169 38 }