wok-current view sakura-gtk2/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-gtk2"
4 VERSION="2.4.2"
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 PROVIDE="sakura"
16 DEPENDS="gtk+ vte-gtk2 xorg-libXdamage xorg-libXi"
17 BUILD_DEPENDS="gtk+-dev vte-gtk2-dev xorg-libXdamage-dev xorg-libXi-dev"
19 # Handle cross compilation.
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gettext cmake wget" ;;
22 esac
24 current_version()
25 {
26 wget -O - https://launchpad.net/sakura 2>/dev/null | \
27 sed '/Latest version/!d;s|.* is ||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 patch -p1 -i $stuff/sakura-icon.patch
34 patch -p1 -i $stuff/ru.po.patch
35 patch -p1 -i $stuff/fr.po.patch
36 patch -p1 -i $stuff/login_shell.patch
38 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . &&
39 sed -i 's/$/ -lncurses/' CMakeFiles/sakura.dir/link.txt &&
40 sed -i 's/-u//' CMakeLists.txt &&
41 sed -i 's/-u//' CMakeFiles/man.dir/build.make &&
42 make &&
43 make DESTDIR=$DESTDIR install
44 cp -f $stuff/sakura.desktop $install/usr/share/applications
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 }