wok annotate udevil/receipt @ rev 25808

created recipe for xmenu
author Hans-G?nter Theisgen
date Thu Dec 19 16:09:37 2024 +0100 (29 hours ago)
parents 5ea0ce1cecc0
children
rev   line source
pankso@13369 1 # SliTaz package receipt.
pankso@13369 2
pankso@13369 3 PACKAGE="udevil"
Hans-G?nter@22066 4 VERSION="0.4.4"
pankso@13369 5 CATEGORY="system-tools"
pankso@13369 6 SHORT_DESC="Fast and light devices manager."
pankso@13369 7 MAINTAINER="pankso@slitaz.org"
pascal@15201 8 LICENSE="GPL3"
Hans-G?nter@22066 9 WEB_SITE="https://ignorantguru.github.io/udevil/"
Hans-G?nter@22066 10
Hans-G?nter@22066 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22067 12 WGET_URL="https://github.com/IgnorantGuru/$PACKAGE/archive/$VERSION.tar.gz"
pankso@13369 13
pankso@13369 14 DEPENDS="udev glib"
Hans-G?nter@22066 15 BUILD_DEPENDS="udev-dev glib-dev file"
pankso@13369 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pankso@13369 23 # Rules to configure and make the package.
pankso@13369 24 compile_rules()
pankso@13369 25 {
pankso@13369 26 ./configure --prefix=/usr &&
Hans-G?nter@22066 27 make &&
Hans-G?nter@22066 28 make install
pankso@13369 29 }
pankso@13369 30
pankso@13369 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@13369 32 genpkg_rules()
pankso@13369 33 {
pankso@13369 34 mkdir -p $fs/usr
Hans-G?nter@22066 35
Hans-G?nter@22066 36 cp -a $install/etc $fs
Hans-G?nter@22066 37 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22066 38
pankso@13369 39 # Must be suid root
pankso@13369 40 chmod +s $fs/usr/bin/udevil
pankso@13369 41 }