wok-next diff synergy/receipt @ rev 21010

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 12 16:40:30 2018 +0300 (2018-10-12)
parents c4f226b02549
children d5aab818505e
line diff
     1.1 --- a/synergy/receipt	Sat Nov 30 11:11:23 2013 +0000
     1.2 +++ b/synergy/receipt	Fri Oct 12 16:40:30 2018 +0300
     1.3 @@ -1,35 +1,30 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="synergy"
     1.8  VERSION="1.3.6"
     1.9  CATEGORY="x-window"
    1.10 -SHORT_DESC="Synergy keyboard and mouse sharing."
    1.11 +SHORT_DESC="Synergy keyboard and mouse sharing"
    1.12  MAINTAINER="rcx@zoominternet.net"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://synergy-foss.org"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION-Source.tar.gz"
    1.17 -WEB_SITE="http://synergy-foss.org"
    1.18  WGET_URL="http://synergy.googlecode.com/files/$TARBALL"
    1.19  
    1.20 -DEPENDS="xorg-libX11 xorg-libXtst xorg-libSM xorg-libICE xorg-libXinerama gcc-lib-base"
    1.21  BUILD_DEPENDS="xorg-dev-proto xorg-libXt-dev xorg-libXtst-dev cmake"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{		
    1.26 -	cd $src
    1.27 -	
    1.28 -	cmake -D CMAKE_INSTALL_PREFIX=/usr .
    1.29 -	make
    1.30 -	# install binary
    1.31 -	install -d "$DESTDIR/usr/bin/"
    1.32 -	install -Dm755 synergyc $DESTDIR//usr/bin/
    1.33 -	install -Dm755 synergys $DESTDIR/usr/bin/
    1.34 -	install -Dm644 examples/${PACKAGE}.conf "$DESTDIR/etc/${PACKAGE}.conf"
    1.35 +compile_rules() {
    1.36 +	cmake \
    1.37 +		-D CMAKE_INSTALL_PREFIX=/usr \
    1.38 +		. &&
    1.39 +	make || return 1
    1.40 +
    1.41 +	install -Dm755 synergyc              $install/usr/bin/synergyc
    1.42 +	install -Dm755 synergys              $install/usr/bin/synergys
    1.43 +	install -Dm644 examples/synergy.conf $install/etc/synergy.conf
    1.44  }
    1.45  
    1.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.47 -genpkg_rules()
    1.48 -{
    1.49 -	mkdir -p $fs/usr
    1.50 -	cp -a $install/usr/bin $fs/usr
    1.51 +genpkg_rules() {
    1.52 +	copy @std
    1.53 +	DEPENDS="xorg-libX11 xorg-libXtst xorg-libSM xorg-libICE xorg-libXinerama"
    1.54  }