wok view setserial/receipt @ rev 25505
Up bzip3 (1.2.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 06 16:45:49 2023 +0000 (21 months ago) |
parents | 7dd01dedad38 |
children | 29df00e1e19d |
line source
1 # SliTaz package receipt.
3 PACKAGE="setserial"
4 VERSION="2.17"
5 CATEGORY="system-tools"
6 SHORT_DESC="Serial port configutation tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://sourceforge.net/projects/setserial/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/setserial/files/setserial/ 2>/dev/null | \
18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
19 sed '/scope="row/!d;s|.*/setserial/||;s|/.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mkdir -p $DESTDIR/usr/bin
27 # http://bugs.gentoo.org/309883
28 # & remove warnings
29 patch -p1 < $stuff/setserial-2.17.u || return 1
31 ./configure \
32 --prefix=/usr \
33 $CONFIGURE_ARGS &&
34 make $PACKAGE &&
35 install -m 755 $PACKAGE $DESTDIR/usr/bin
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/usr $fs
42 }