wok view input-utils/receipt @ rev 24713
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 14 18:23:09 2022 +0000 (2022-03-14) |
parents | f94b55b6f9d0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="input-utils"
4 VERSION="1.3"
5 CATEGORY="system-tools"
6 TAGS="kernel input utilities"
7 SHORT_DESC="Small collection of linux input layer tools."
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.kraxel.org/blog/linux/input/"
12 SOURCE="input"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://www.kraxel.org/releases/$SOURCE/$TARBALL"
16 DEPENDS=""
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://git.kraxel.org/cgit/input/ 2>/dev/null | \
22 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch --input $stuff/remove-target-lircd.conf.patch GNUmakefile
30 export prefix="/usr"
31 export CFLAGS="$CFLAGS -O3 -march=$ARCH"
33 make -j 1 &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 }