wok-current view xorgxrdp/receipt @ rev 24403

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 18:20:23 2022 +0000 (2022-02-08)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorgxrdp"
4 VERSION="0.2.16"
5 CATEGORY="network"
6 SHORT_DESC="Xorg drivers for xrdp."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.xrdp.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/neutrinolabs/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 SUGGESTED="xrdp"
15 DEPENDS="xorg-server"
16 BUILD_DEPENDS="autoconf automake libtool nasm pkg-config
17 xorg-server-dev xrdp-dev"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $install/usr/share/doc
40 mkdir -p $fs/usr
42 cp -a $src/*.md $src/COPYING $install/usr/share/doc
43 cp -a $install/usr/lib $fs/usr
44 cp -a $install/etc $fs/
46 find $fs/usr -name '*a' -exec rm -f {} \;
47 }