wok view gaupol/receipt @ rev 24713
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 14 18:23:09 2022 +0000 (2022-03-14) |
parents | a79df5936e70 |
children | 20ad21d5532c |
line source
1 # SliTaz package receipt.
3 PACKAGE="gaupol"
4 VERSION="1.7"
5 CATEGORY="multimedia"
6 SHORT_DESC="An editor for text-based subtitle files."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://otsaloma.io/gaupol/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/otsaloma/$PACKAGE/archive/$VERSION.tar.gz"
14 SUGGESTED="mplayer"
15 DEPENDS="py3k pygtk"
16 BUILD_DEPENDS="gettext intltool py3k-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python3 setup.py clean install --prefix=$install/usr
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 PYTHON_LIB=python$(grep ^VERSION= $WOK/py3k/receipt | sed 's/.*"\(...\).*/\1/')
34 sed -i 's|/home/slitaz/wok/gaupol/install||g' \
35 $install/usr/lib/$PYTHON_LIB/site-packages/aeidon/paths.py
37 cp -a $install/usr $fs
38 }