wok view synergy/receipt @ rev 25769
libmaxminddb, ndpi: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 09:45:40 2024 +0000 (2 months ago) |
parents | d765616e1f3d |
children |
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="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$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;/tag\//!d;s|.*tag/v*||;s|".*||;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 }