wok-6.x view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="fbterm"
4 VERSION="1.8"
5 CATEGORY="utilities"
6 SHORT_DESC="A fast FrameBuffer based TERMinal emulator for linux."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/sfzhi/fbterm"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/sfzhi/$PACKAGE/archive/$VERSION/$TARBALL"
14 DEPENDS="bzlib expat fontconfig freetype gcc-lib-base glibc-base zlib"
15 #configure: WARNING: libx86.h doesn't exist! VESA support will be disabled!
16 BUILD_DEPENDS="freetype-dev fontconfig-dev gpm-dev ncursesw-dev ncursesw-extra"
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure $CONFIGURE_ARGS &&
29 make -j 1 &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 }