wok-current annotate tupi/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | c02f18f9e836 |
children | 505d1daeed6c |
rev | line source |
---|---|
pankso@16152 | 1 # SliTaz package receipt. |
pankso@16152 | 2 |
pankso@16152 | 3 PACKAGE="tupi" |
pankso@16152 | 4 VERSION="0.2-git03" |
pankso@16152 | 5 CATEGORY="graphics" |
pankso@16152 | 6 SHORT_DESC="2D vector animation studio" |
pankso@16152 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16152 | 8 LICENSE="GPL3" |
pankso@16152 | 9 TARBALL="${PACKAGE}_${VERSION}.tar.gz" |
pascal@23844 | 10 WEB_SITE="https://www.maefloresta.com/" |
pankso@16152 | 11 WGET_URL="http://download.berlios.de/tupi/$TARBALL/from_sourceforge" |
pankso@16152 | 12 |
pankso@16152 | 13 DEPENDS="libQtCore libQtSvg libQtOpenGL ffmpeg quazip mesa libogg libtheora libtheora-enc" |
pascal@16643 | 14 BUILD_DEPENDS="ruby-dev Qt4-dev qmake ffmpeg-dev zlib-dev quazip-dev mesa-dev \ |
pascal@20594 | 15 libogg-dev libtheora-dev libgnutls" |
pankso@16152 | 16 |
pascal@24535 | 17 # What is the latest version available today? |
pascal@24535 | 18 current_version() |
pascal@24535 | 19 { |
pascal@24535 | 20 wget -O - https://sourceforge.net/projects/tupi2d/files/Source%20Code/ 2>/dev/null | \ |
pascal@24535 | 21 sed '/tupi-/!d;/tar.gz/!d;s|.tar.gz.*||;s|.*tupi-||;q' |
pascal@24535 | 22 } |
pascal@24535 | 23 |
pankso@16152 | 24 # Rules to configure and make the package. |
pankso@16152 | 25 compile_rules() |
pankso@16152 | 26 { |
pankso@16152 | 27 ./configure --prefix=/usr \ |
pankso@16152 | 28 $CONFIGURE_ARGS && |
pankso@16152 | 29 make && make install |
pankso@16152 | 30 } |
pankso@16152 | 31 |
pankso@16152 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16152 | 33 genpkg_rules() |
pankso@16152 | 34 { |
pankso@16152 | 35 mkdir -p $fs/usr/lib $fs/usr/share |
pankso@16152 | 36 cp -a $install/usr/bin $fs/usr |
pankso@16152 | 37 cp -a $install/usr/lib/tupi $fs/usr/lib |
pankso@16152 | 38 cp -a $install/usr/share/tupi $fs/usr/share |
pascal@19851 | 39 sed -i 's|/bin/bash|/bin/sh|' $fs/usr/bin/tupi |
pankso@16152 | 40 } |