wok-current view sakura/receipt @ rev 20675
iron: update /usr/bin/iron symlink
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 24 22:11:16 2019 +0100 (2019-01-24) |
parents | bb52d6e358fb |
children | 05c8d8d9d934 |
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="http://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"
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) BUILD_DEPENDS="$BUILD_DEPENDS gettext cmake wget" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 patch -p1 -i $stuff/sakura-icon.patch
27 patch -p1 -i $stuff/ru.po.patch
28 patch -p1 -i $stuff/fr.po.patch
29 patch -p1 -i $stuff/login_shell.patch
31 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . &&
32 sed -i 's/$/ -lncurses/' CMakeFiles/sakura.dir/link.txt &&
33 sed -i 's/-u//' CMakeLists.txt &&
34 sed -i 's/-u//' CMakeFiles/man.dir/build.make &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 cp -f $stuff/sakura.desktop $install/usr/share/applications
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 }