wok annotate thunar-archive-plugin/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 17091bc7c301
children
rev   line source
erjo@2072 1 # SliTaz package receipt.
erjo@2072 2
erjo@2072 3 PACKAGE="thunar-archive-plugin"
slaxemulator@8291 4 VERSION="0.3.0"
erjo@2072 5 CATEGORY="x-window"
erjo@2072 6 SHORT_DESC="Thunar Archive Manager plugin"
erjo@2072 7 MAINTAINER="erjo@slitaz.org"
pascal@15590 8 LICENSE="GPL2"
erjo@2072 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20671 10 WEB_SITE="https://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin"
pascal@24972 11 WGET_URL="https://archive.xfce.org/src/thunar-plugins/$PACKAGE/${VERSION%.*}/$TARBALL"
erjo@2072 12
erjo@10017 13 DEPENDS="thunar"
erjo@10017 14 BUILD_DEPENDS="intltool thunar-dev libexo-dev libxfce4ui-dev \
erjo@10017 15 xfconf-dev startup-notification-dev"
erjo@10017 16
pascal@24415 17 # What is the latest version available today?
pascal@24415 18 current_version()
pascal@24415 19 {
pascal@24415 20 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
pascal@24415 21 sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
pascal@24415 22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24415 23 }
pascal@24415 24
erjo@2072 25 # Rules to configure and make the package.
erjo@2072 26 compile_rules()
erjo@2072 27 {
erjo@2072 28 cd $src
slaxemulator@10312 29 ./configure --libexecdir=/usr/lib \
slaxemulator@10312 30 $CONFIGURE_ARGS && \
slaxemulator@9475 31 make && make install
erjo@2072 32 }
erjo@2072 33
erjo@2072 34 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@2072 35 genpkg_rules()
erjo@2072 36 {
erjo@2072 37 mkdir -p $fs/usr/share/locale \
slaxemulator@8291 38 $fs/usr/lib/thunarx-2
erjo@2072 39
pascal@15590 40 cp -a $install/usr/lib/thunarx-2/*.so* $fs/usr/lib/thunarx-2
pascal@15590 41 cp -a $install/usr/share/icons $fs/usr/share
pascal@15590 42 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
pascal@15590 43 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
erjo@4157 44
erjo@4157 45 # Fix perms
erjo@4872 46 chmod 755 $fs/usr/lib/thunar-archive-plugin/*
erjo@2072 47
erjo@2072 48 # Cleanup
slaxemulator@8291 49 rm -f $fs/usr/lib/thunarx-2/*.*a
erjo@2072 50 }
erjo@2072 51