wok-6.x view synergy/receipt @ rev 24788

grep: add post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 09:31:32 2022 +0000 (2022-03-21)
parents c4f226b02549
children d765616e1f3d
line source
1 # SliTaz package receipt.
3 PACKAGE="synergy"
4 VERSION="1.3.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Synergy keyboard and mouse sharing."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-Source.tar.gz"
10 WEB_SITE="http://synergy-foss.org"
11 WGET_URL="http://synergy.googlecode.com/files/$TARBALL"
13 DEPENDS="xorg-libX11 xorg-libXtst xorg-libSM xorg-libICE xorg-libXinerama gcc-lib-base"
14 BUILD_DEPENDS="xorg-dev-proto xorg-libXt-dev xorg-libXtst-dev cmake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/symless/synergy-core/releases 2>/dev/null | \
20 sed '/stable/!d;/archive.*tar/!d;s|.*/v*\(.*\)-stable.tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
28 cmake -D CMAKE_INSTALL_PREFIX=/usr .
29 make
30 # install binary
31 install -d "$DESTDIR/usr/bin/"
32 install -Dm755 synergyc $DESTDIR//usr/bin/
33 install -Dm755 synergys $DESTDIR/usr/bin/
34 install -Dm644 examples/${PACKAGE}.conf "$DESTDIR/etc/${PACKAGE}.conf"
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 }