wok-current view sakura-gtk3/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | |
children |
line source
1 # SliTaz package receipt
3 PACKAGE="sakura-gtk3"
4 VERSION="3.6.0"
5 CATEGORY="utilities"
6 SHORT_DESC="A simple but powerful libvte-based terminal emulator"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.pleyades.net/david/projects/sakura"
10 TARBALL="sakura-$VERSION.tar.bz2"
11 WGET_URL="https://launchpad.net/sakura/trunk/$VERSION/+download/$TARBALL"
12 TAGS="terminal"
13 HOST_ARCH="i486 arm"
15 DEPENDS="gtk+3 vte-gtk3 xorg-libXdamage xorg-libXi"
16 BUILD_DEPENDS="gtk+3-dev vte-gtk3-dev xorg-libXdamage-dev xorg-libXi-dev"
18 # Handle cross compilation.
19 case "$ARCH" in
20 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gettext cmake wget" ;;
21 esac
23 current_version()
24 {
25 wget -O - https://launchpad.net/sakura 2>/dev/null | \
26 sed '/Latest version/!d;s|.* is ||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 #patch -p1 -i $stuff/sakura-icon.patch
33 #patch -p1 -i $stuff/ru.po.patch
34 #patch -p1 -i $stuff/fr.po.patch
35 #patch -p1 -i $stuff/login_shell.patch
37 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . &&
38 sed -i 's/$/ -lncurses/' CMakeFiles/sakura.dir/link.txt &&
39 sed -i 's/-u//' CMakeLists.txt &&
40 sed -i 's/-u//' CMakeFiles/man.dir/build.make &&
41 make &&
42 make DESTDIR=$DESTDIR install
43 cp -f $stuff/sakura.desktop $install/usr/share/applications
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
50 cp -a $install/usr/bin $fs/usr
51 }