wok-current view v4l4j/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 04434444ef20 |
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 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 }