wok-6.x annotate fbterm/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 2fd8086633b5 |
children | ac8ca9758df1 |
rev | line source |
---|---|
al@13649 | 1 # SliTaz package receipt. |
al@13649 | 2 |
al@13649 | 3 PACKAGE="fbterm" |
Hans-G?nter@20916 | 4 VERSION="1.8" |
al@13649 | 5 CATEGORY="utilities" |
Hans-G?nter@20916 | 6 SHORT_DESC="A fast FrameBuffer based TERMinal emulator for linux." |
al@13649 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@20673 | 9 WEB_SITE="https://github.com/sfzhi/fbterm" |
Hans-G?nter@20916 | 10 |
al@13649 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20916 | 12 WGET_URL="https://github.com/sfzhi/$PACKAGE/archive/$VERSION/$TARBALL" |
al@13649 | 13 |
al@13649 | 14 DEPENDS="bzlib expat fontconfig freetype gcc-lib-base glibc-base zlib" |
al@13649 | 15 #configure: WARNING: libx86.h doesn't exist! VESA support will be disabled! |
al@13649 | 16 BUILD_DEPENDS="freetype-dev fontconfig-dev gpm-dev ncursesw-dev ncursesw-extra" |
Hans-G?nter@20916 | 17 HOST_ARCH="i486 arm" |
al@13649 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
al@13649 | 25 # Rules to configure and make the package. |
al@13649 | 26 compile_rules() |
al@13649 | 27 { |
Hans-G?nter@20916 | 28 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@20916 | 29 make -j 1 && |
Hans-G?nter@20916 | 30 make install |
al@13649 | 31 } |
al@13649 | 32 |
al@13649 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13649 | 34 genpkg_rules() |
al@13649 | 35 { |
al@13649 | 36 mkdir -p $fs/usr |
al@13649 | 37 cp -a $install/usr/bin $fs/usr |
al@13649 | 38 } |