wok-current view sakura/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (2 weeks ago)
parents ee53899c6189
children
line source
1 # SliTaz package receipt
3 PACKAGE="sakura"
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="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://launchpad.net/sakura/trunk/$VERSION/+download/$TARBALL"
12 TAGS="terminal"
13 HOST_ARCH="i486 arm x86_64"
15 DEPENDS="gtk+ vte xorg-libXdamage xorg-libXi"
16 BUILD_DEPENDS="gtk+-dev vte-dev xorg-libXdamage-dev xorg-libXi-dev"
18 # Handle cross compilation.
19 case "$ARCH" in
20 i?86|x86_64) 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 }