wok annotate gqview/receipt @ rev 24667
updated inotify-tools (3.20.2.2 -> 3.22.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 16:18:25 2022 +0100 (2022-03-11) |
parents | 33b800b4871e |
children | 6b33f9da53d4 |
rev | line source |
---|---|
pankso@43 | 1 # SliTaz package receipt. |
pankso@43 | 2 |
pankso@43 | 3 PACKAGE="gqview" |
Hans-G?nter@20998 | 4 VERSION="2.1.5" |
pankso@207 | 5 CATEGORY="graphics" |
pankso@43 | 6 SHORT_DESC="Images viewer and manager using GTK+." |
pankso@43 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15589 | 8 LICENSE="GPL2" |
Hans-G?nter@20998 | 9 WEB_SITE="https://gqview.sourceforge.io/" |
Hans-G?nter@20998 | 10 |
pankso@43 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@43 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@43 | 13 |
pascal@15589 | 14 DEPENDS="gtk+ xorg-libXdamage" |
pascal@15589 | 15 BUILD_DEPENDS="pkg-config gtk+ gtk+-dev" |
pascal@15589 | 16 |
pascal@24403 | 17 # What is the latest version available today? |
pascal@24403 | 18 current_version() |
pascal@24403 | 19 { |
pascal@24403 | 20 wget -O - https://sourceforge.net/projects/gqview/files/unstable/ 2>/dev/null | \ |
pascal@24403 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24403 | 22 sed '/scope="row/!d;s|.*/unstable/||;s|/.*||;q' |
pascal@24403 | 23 } |
pascal@24403 | 24 |
pankso@43 | 25 # Rules to configure and make the package. |
pankso@43 | 26 compile_rules() |
pankso@43 | 27 { |
pascal@17670 | 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm" |
Hans-G?nter@20998 | 29 |
Hans-G?nter@20998 | 30 ./configure \ |
Hans-G?nter@20998 | 31 --prefix=/usr \ |
Hans-G?nter@20998 | 32 --mandir=/usr/share/man \ |
Hans-G?nter@20998 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@20998 | 34 make -j 1 && |
pascal@15589 | 35 make DESTDIR=$DESTDIR install |
pankso@43 | 36 } |
pankso@43 | 37 |
pankso@43 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@43 | 39 genpkg_rules() |
pankso@43 | 40 { |
pankso@43 | 41 mkdir -p $fs/usr/share/locale |
Hans-G?nter@20998 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@20998 | 43 cp -a $install/usr/share/pixmaps $fs/usr/share |
Hans-G?nter@20998 | 44 |
Hans-G?nter@20998 | 45 # locales |
Hans-G?nter@20998 | 46 LOCALE="ca da de es fr id it pl pt_BR ru sv uk zh_CN" |
Hans-G?nter@20998 | 47 for locale in $LOCALE |
Hans-G?nter@20998 | 48 do |
Hans-G?nter@20998 | 49 if [ -e $install/usr/share/locale/$locale/gqview.mo ] |
Hans-G?nter@20998 | 50 then |
Hans-G?nter@20998 | 51 mkdir -p $fs/usr/share/locale/$locale/LC_MESSAGES |
Hans-G?nter@20998 | 52 cp -a $install/usr/share/locale/$locale/gqview.mo \ |
Hans-G?nter@20998 | 53 $fs/usr/share/locale/$locale/LC_MESSAGES |
Hans-G?nter@20998 | 54 fi |
Hans-G?nter@20998 | 55 done |
pankso@43 | 56 } |