wok annotate cbrpager/receipt @ rev 25097

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 18 20:27:19 2022 +0000 (24 months ago)
parents f4c22f009037
children 6b33f9da53d4
rev   line source
al@14137 1 # SliTaz package receipt.
al@14137 2
al@14137 3 PACKAGE="cbrpager"
al@14137 4 VERSION="0.9.22"
al@14137 5 CATEGORY="graphics"
al@14137 6 SHORT_DESC="Viewer for CBR, CBZ and CB7 (comic book archive) files"
al@14137 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15201 8 LICENSE="GPL3"
al@14137 9 WEB_SITE="http://jcoppens.com/soft/cbrpager/index.en.php"
al@14137 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@14137 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@14137 12
al@14137 13 DEPENDS="libgnome-keyring libgnomeui p7zip-full rar unzip"
al@14137 14 BUILD_DEPENDS="gettext libgnomeui-dev libgnome-dev libbonoboui-dev \
al@14137 15 libgnomecanvas-dev libgnome-keyring-dev gtk+-dev"
al@14137 16
pascal@24373 17 # What is the latest version available today?
pascal@24373 18 current_version()
pascal@24373 19 {
pascal@24373 20 wget -O - https://sourceforge.net/projects/cbrpager/files/cbrpager/ 2>/dev/null | \
pascal@24373 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24373 22 sed '/scope="row/!d;s|.*/cbrpager/cbrpager-||;s|/.*||;q'
pascal@24373 23 }
pascal@24373 24
al@14137 25 # Rules to configure and make the package.
al@14137 26 compile_rules()
al@14137 27 {
al@14137 28 ./configure \
al@14137 29 $CONFIGURE_ARGS \
al@14137 30 LDFLAGS="$(pkg-config --libs libgnomeui-2.0 gtk+-2.0)" && \
al@14137 31 make && \
al@14137 32 make install
al@14137 33 }
al@14137 34
al@14137 35 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14137 36 genpkg_rules()
al@14137 37 {
al@14137 38 cp -a $install/* $fs
al@14137 39 # add Russian translation
al@14137 40 mkdir -p $fs/usr/share/locale/ru/LC_MESSAGES
al@14137 41 msgfmt $stuff/ru.po -o $fs/usr/share/locale/ru/LC_MESSAGES/cbrpager.mo
al@14137 42 }