wok-next annotate libvncserver/receipt @ rev 20424
linux-dev: move creation to compile_rules(), keep genpkg_rules() for copying/splitting only
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 12 17:02:57 2018 +0200 (2018-01-12) |
parents | d88fe67c4f82 |
children | e6615350078d |
rev | line source |
---|---|
al@20332 | 1 # SliTaz package receipt v2. |
slaxemulator@6742 | 2 |
slaxemulator@6742 | 3 PACKAGE="libvncserver" |
al@20332 | 4 VERSION="0.9.11" |
slaxemulator@6742 | 5 CATEGORY="network" |
al@20332 | 6 SHORT_DESC="VNC library" |
slaxemulator@6742 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14718 | 8 LICENSE="GPL2" |
al@20332 | 9 WEB_SITE="http://libvnc.github.io/" |
slaxemulator@6742 | 10 |
al@20332 | 11 TARBALL="LibVNCServer-$VERSION.tar.gz" |
al@20332 | 12 WGET_URL="https://github.com/LibVNC/libvncserver/archive/$TARBALL" |
pascal@14718 | 13 |
al@20332 | 14 BUILD_DEPENDS="automake libtool openssl-dev libjpeg-turbo-dev libpng16-dev" |
al@20332 | 15 SPLIT="libvncserver-novnc libvncserver-dev" |
al@20332 | 16 |
al@20332 | 17 compile_rules() { |
al@20332 | 18 ./autogen.sh $CONFIGURE_ARGS && |
al@20332 | 19 make && make install || return 1 |
al@20332 | 20 |
al@20332 | 21 mkdir -p $install/var/www |
al@20332 | 22 cp -r webclients/novnc $install/var/www |
slaxemulator@6742 | 23 } |
slaxemulator@6742 | 24 |
al@20332 | 25 genpkg_rules() { |
al@20332 | 26 case $PACKAGE in |
al@20332 | 27 libvncserver) |
al@20332 | 28 copy *.so* |
al@20332 | 29 DEPENDS="libcrypto libjpeg-turbo libpng16 libssl zlib" |
al@20332 | 30 ;; |
al@20332 | 31 libvncserver-novnc) |
al@20332 | 32 copy novnc/ |
al@20332 | 33 CAT="network|noVNC web client" |
al@20332 | 34 DEPENDS=" " |
al@20332 | 35 ;; |
al@20332 | 36 *-dev) |
al@20332 | 37 copy @dev |
al@20332 | 38 rm -r $fs/var # it includes 'include/' too and false recognized as dev files |
al@20332 | 39 DEPENDS="libvncserver libjpeg-turbo-dev libpng16-dev openssl-dev \ |
al@20332 | 40 zlib-dev" |
al@20332 | 41 ;; |
al@20332 | 42 esac |
slaxemulator@6742 | 43 } |