wok-next diff sakura/receipt @ rev 20170

firefox: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 20:21:41 2017 +0100 (2017-11-01)
parents e7ef03df3c49
children b863487b8e7a
line diff
     1.1 --- a/sakura/receipt	Tue Apr 12 17:19:40 2016 +0200
     1.2 +++ b/sakura/receipt	Wed Nov 01 20:21:41 2017 +0100
     1.3 @@ -1,45 +1,38 @@
     1.4 -# SliTaz package receipt
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="sakura"
     1.8 -VERSION="2.4.2"
     1.9 +VERSION="3.4.0"
    1.10  CATEGORY="utilities"
    1.11 -SHORT_DESC="A simple but powerful libvte-based terminal emulator"
    1.12 -MAINTAINER="pankso@slitaz.org"
    1.13 +SHORT_DESC="Simple GTK+3 and VTE-based terminal emulator"
    1.14 +MAINTAINER="al.bobylev@gmail.com"
    1.15  LICENSE="GPL2"
    1.16  WEB_SITE="http://www.pleyades.net/david/projects/sakura"
    1.17 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.18 +
    1.19 +TARBALL="sakura-$VERSION.tar.bz2"
    1.20  WGET_URL="https://launchpad.net/sakura/trunk/$VERSION/+download/$TARBALL"
    1.21 -TAGS="terminal"
    1.22 -HOST_ARCH="i486 arm"
    1.23  
    1.24 -DEPENDS="gtk+ vte xorg-libXdamage xorg-libXi"
    1.25 -BUILD_DEPENDS="gtk+-dev vte-dev xorg-libXdamage-dev xorg-libXi-dev"
    1.26 -
    1.27 -# Handle cross compilation.
    1.28 -case "$ARCH" in
    1.29 -	i?86) BUILD_DEPENDS="$BUILD_DEPENDS gettext cmake wget" ;;
    1.30 -esac
    1.31 +BUILD_DEPENDS="cmake glib-dev gtk+3-dev vte-dev pcre2-dev gettext"
    1.32  
    1.33  # Rules to configure and make the package.
    1.34  compile_rules()
    1.35  {
    1.36 -	patch -p1 -i $stuff/sakura-icon.patch
    1.37 -	patch -p1 -i $stuff/ru.po.patch
    1.38 -	patch -p1 -i $stuff/fr.po.patch
    1.39 +	sed -i '/TryExec/d; s|Icon=.*|Icon=utilities-terminal|' sakura.desktop
    1.40  
    1.41 -	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . &&
    1.42 -	sed -i 's/$/ -lncurses/' CMakeFiles/sakura.dir/link.txt &&
    1.43 -	sed -i 's/-u//' CMakeLists.txt &&
    1.44 -	sed -i 's/-u//' CMakeFiles/man.dir/build.make &&
    1.45 -	make &&
    1.46 -	make DESTDIR=$DESTDIR install
    1.47 -	cp -f $stuff/sakura.desktop $install/usr/share/applications
    1.48 +	cmake \
    1.49 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.50 +		-DCMAKE_BUILD_TYPE=RELEASE \
    1.51 +		. &&
    1.52 +	make && make install &&
    1.53 +
    1.54 +	rm -rf $install/usr/share/pixmaps
    1.55  }
    1.56  
    1.57  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.58  genpkg_rules()
    1.59  {
    1.60 -	mkdir -p $fs/usr
    1.61 -	cp -a $install/usr/bin $fs/usr
    1.62 +	copy @std
    1.63 +	TAGS="terminal"
    1.64 +	DEPENDS="atk cairo gdk-pixbuf glib gtk+3 libgnutls pango pcre2 vte \
    1.65 +	xorg-libX11 zlib"
    1.66 +	PROVIDE="sakura"
    1.67  }
    1.68 -