wok-6.x annotate pcmanfm-legacy/receipt @ rev 25565
Reenable rpc for glibc, fix gpxe grub4dos receipt, fix linld url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue May 09 17:24:00 2023 +0000 (18 months ago) |
parents | ad0bc3efbf37 |
children |
rev | line source |
---|---|
pankso@13349 | 1 # SliTaz package receipt. |
pankso@13349 | 2 |
pascal@13351 | 3 PACKAGE="pcmanfm-legacy" |
pankso@13349 | 4 VERSION="0.5.2" |
pascal@13351 | 5 SOURCE="pcmanfm" |
pankso@13349 | 6 CATEGORY="system-tools" |
pankso@13349 | 7 SHORT_DESC="Light and easy to use file manager." |
pankso@13349 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
pascal@13351 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@25510 | 11 WEB_SITE="https://sourceforge.net/projects/pcmanfm/" |
pascal@13351 | 12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
al@17501 | 13 TAGS="file-manager" |
pankso@13349 | 14 |
pankso@13349 | 15 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \ |
pankso@13349 | 16 zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \ |
pankso@13349 | 17 startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \ |
pankso@13349 | 18 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \ |
pankso@13349 | 19 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender \ |
pascal@24113 | 20 hicolor-icon-theme shared-mime-info" |
pankso@13349 | 21 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \ |
pankso@13349 | 22 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \ |
pankso@13349 | 23 xcb-util" |
pankso@13349 | 24 |
pascal@24396 | 25 # What is the latest version available today? |
pascal@24396 | 26 current_version() |
pascal@24396 | 27 { |
pascal@24396 | 28 wget -O - 'https://sourceforge.net/projects/pcmanfm/files/PCManFM %2B Libfm (tarball release)/PCManFM/' 2>/dev/null | \ |
pascal@24396 | 29 sed '/scope="row/!d;s|.*/pcmanfm-||;s|.tar.*||;q' |
pascal@24396 | 30 } |
pascal@24396 | 31 |
pankso@13349 | 32 # Rules to configure and make the package. |
pankso@13349 | 33 compile_rules() |
pankso@13349 | 34 { |
pankso@13349 | 35 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@22171 | 36 export LDFLAGS="$LDFLAGS -lxcb-util -Wl,--copy-dt-needed-entries -lXt" |
pankso@13349 | 37 |
pankso@13349 | 38 cd $src |
pankso@13349 | 39 for i in $stuff/*.patch |
pankso@13349 | 40 do |
pankso@13349 | 41 if [ -f done.$(basename $i) ]; then |
pankso@13349 | 42 continue |
pankso@13349 | 43 else |
pankso@13349 | 44 patch -p0 < $i && touch done.$(basename $i) || return 1 |
pankso@13349 | 45 fi |
pankso@13349 | 46 done |
pankso@13349 | 47 |
pankso@13349 | 48 cp $stuff/fr.po $src/po |
pankso@13349 | 49 |
pankso@13349 | 50 ./configure \ |
pankso@13349 | 51 --enable-hal \ |
pankso@13349 | 52 $CONFIGURE_ARGS && |
pascal@18972 | 53 make && make -j 1 install |
pankso@13349 | 54 } |
pankso@13349 | 55 |
pankso@13349 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13349 | 57 genpkg_rules() |
pankso@13349 | 58 { |
pankso@13349 | 59 mkdir -p $fs/usr/share/applications $fs/etc/xdg |
pankso@13349 | 60 |
pankso@13349 | 61 cp -a $install/usr/bin $fs/usr |
pascal@15626 | 62 #cp -a $install/usr/share/mime $fs/usr/share |
pankso@13349 | 63 cp -a $install/usr/share/pcmanfm $fs/usr/share |
pankso@13349 | 64 rm -rf $fs/usr/share/pcmanfm/icons |
pankso@13349 | 65 |
pankso@13349 | 66 # XDG autostart desktop file (lxsession will use it automaticaly) |
pankso@13349 | 67 cp -a $stuff/autostart $fs/etc/xdg |
pankso@13349 | 68 } |
pankso@13349 | 69 |
pankso@13349 | 70 post_install() |
pankso@13349 | 71 { |
pankso@13349 | 72 # update mime-cache |
pascal@20319 | 73 echo |
pankso@13349 | 74 echo "Updating mime-types database" |
pankso@13349 | 75 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime |
pankso@13349 | 76 } |