wok annotate irssi/receipt @ rev 25589
xinput-calibrator: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 15 10:35:54 2023 +0000 (16 months ago) |
parents | 5ea0ce1cecc0 |
children | 20ad21d5532c |
rev | line source |
---|---|
mallory@1114 | 1 # SliTaz package receipt |
mallory@1099 | 2 |
mallory@1099 | 3 PACKAGE="irssi" |
Hans-G?nter@24678 | 4 VERSION="1.2.3" |
mallory@1099 | 5 CATEGORY="network" |
Hans-G?nter@21064 | 6 TAGS="irc" |
Hans-G?nter@21064 | 7 SHORT_DESC="Lightweight console IRC client." |
mallory@1099 | 8 MAINTAINER="mallory@sweetpeople.org" |
pascal@15002 | 9 LICENSE="GPL2" |
pascal@20669 | 10 WEB_SITE="https://irssi.org/" |
mallory@1099 | 11 |
Hans-G?nter@21064 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21064 | 13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$VERSION/$TARBALL" |
Hans-G?nter@21064 | 14 |
Hans-G?nter@21064 | 15 DEPENDS="glib ncurses openssl perl" |
Hans-G?nter@21064 | 16 BUILD_DEPENDS="glib glib-dev ncurses-dev openssl-dev perl pkg-config" |
pascal@15002 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
mallory@1099 | 24 # Rules to configure and make the package. |
mallory@1099 | 25 compile_rules() |
mallory@1114 | 26 { |
pascal@17628 | 27 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@21064 | 28 |
Hans-G?nter@21064 | 29 ./configure \ |
Hans-G?nter@21064 | 30 --prefix=/usr \ |
Hans-G?nter@21064 | 31 --sysconfdir=/etc/irssi \ |
pascal@1458 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@24678 | 33 make && |
Hans-G?nter@24678 | 34 make install DESTDIR=$DESTDIR |
mallory@1099 | 35 } |
mallory@1099 | 36 |
mallory@1099 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@1099 | 38 genpkg_rules() |
mallory@1099 | 39 { |
Hans-G?nter@24678 | 40 mkdir -p $fs/usr/share |
Hans-G?nter@21064 | 41 |
Hans-G?nter@21064 | 42 cp -a $install/etc $fs |
Hans-G?nter@21064 | 43 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21064 | 44 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21064 | 45 cp -a $install/usr/share/irssi $fs/usr/share |
mallory@1114 | 46 } |