wok view v4l4j/receipt @ rev 25532

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 10:46:05 2023 +0000 (20 months ago)
parents 04434444ef20
children 0262035dc1e7
line source
1 # SliTaz package receipt.
3 PACKAGE="v4l4j"
4 VERSION="0.9.1"
5 CATEGORY="development"
6 SHORT_DESC="v4l4j is a java JNI wrapper to access the Video4Linux API."
7 MAINTAINER="yuripourre@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/yuripourre/v4l4j"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
12 TAGS="java"
14 DEPENDS="libv4l jpeg icedtea6-jre"
15 BUILD_DEPENDS="libv4l-dev jpeg-dev apache-ant icedtea6-jdk"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 compile_rules()
24 {
25 export JAVA_HOME=/usr/lib/jvm/java-icedtea/
26 ant clean all
27 ant -Ddestdir=$install install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/usr $fs
34 #Remove logo images
35 rm -rf $fs/usr/share/pixmaps/
36 }