wok-next annotate pcmanfm-legacy/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 7eb047d2b438 |
children | 10df65db91ad |
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" |
pankso@13349 | 11 WEB_SITE="http://pcmanfm.sourceforge.net/" |
pascal@13351 | 12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
al@17501 | 13 TAGS="file-manager" |
pankso@13349 | 14 |
al@20450 | 15 DEPENDS="glibc-base glib util-linux-uuid xorg-libxcb xorg-xcb-util expat \ |
al@20454 | 16 zlib fontconfig freetype gtk+ atk cairo pango xorg-pixman libpng16 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@19700 | 20 hicolor-icon-theme shared-mime-info" |
pankso@13349 | 21 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \ |
al@20450 | 22 dbus-glib-dev dbus-dev startup-notification-dev xorg-libxcb-dev xorg-xcb-util-dev \ |
al@20450 | 23 xorg-xcb-util xorg-libX11-dev xorg-libXt-dev" |
pankso@13349 | 24 |
pankso@13349 | 25 # Rules to configure and make the package. |
pankso@13349 | 26 compile_rules() |
pankso@13349 | 27 { |
pankso@13349 | 28 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lXt" |
pankso@13349 | 30 |
pankso@13349 | 31 cd $src |
pankso@13349 | 32 for i in $stuff/*.patch |
pankso@13349 | 33 do |
pankso@13349 | 34 if [ -f done.$(basename $i) ]; then |
pankso@13349 | 35 continue |
pankso@13349 | 36 else |
pankso@13349 | 37 patch -p0 < $i && touch done.$(basename $i) || return 1 |
pankso@13349 | 38 fi |
pankso@13349 | 39 done |
pankso@13349 | 40 |
pankso@13349 | 41 cp $stuff/fr.po $src/po |
pankso@13349 | 42 |
pankso@13349 | 43 ./configure \ |
pankso@13349 | 44 --enable-hal \ |
pankso@13349 | 45 $CONFIGURE_ARGS && |
pascal@18972 | 46 make && make -j 1 install |
pankso@13349 | 47 } |
pankso@13349 | 48 |
pankso@13349 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13349 | 50 genpkg_rules() |
pankso@13349 | 51 { |
pankso@13349 | 52 mkdir -p $fs/usr/share/applications $fs/etc/xdg |
pankso@13349 | 53 |
pankso@13349 | 54 cp -a $install/usr/bin $fs/usr |
pascal@15626 | 55 #cp -a $install/usr/share/mime $fs/usr/share |
pankso@13349 | 56 cp -a $install/usr/share/pcmanfm $fs/usr/share |
pankso@13349 | 57 rm -rf $fs/usr/share/pcmanfm/icons |
pankso@13349 | 58 |
pankso@13349 | 59 # XDG autostart desktop file (lxsession will use it automaticaly) |
pankso@13349 | 60 cp -a $stuff/autostart $fs/etc/xdg |
pankso@13349 | 61 } |
pankso@13349 | 62 |
pankso@13349 | 63 post_install() |
pankso@13349 | 64 { |
pankso@13349 | 65 # update mime-cache |
pankso@13349 | 66 echo "Updating mime-types database" |
pankso@13349 | 67 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime |
pankso@13349 | 68 } |