wok view v4l4j/receipt @ rev 25690

mmv: inserted current_version()
author Hans-G?nter Theisgen
date Mon Apr 15 15:20:24 2024 +0100 (7 weeks ago)
parents 5ea0ce1cecc0
children
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export JAVA_HOME=/usr/lib/jvm/java-icedtea/
28 ant clean all
29 ant -Ddestdir=$install install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 #Remove logo images
37 rm -rf $fs/usr/share/pixmaps/
38 }