wok annotate spacefm/receipt @ rev 25562
ext4magic: add current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 01 08:21:00 2023 +0000 (16 months ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pankso@11898 | 1 # SliTaz package receipt. |
pankso@11898 | 2 |
pankso@11898 | 3 PACKAGE="spacefm" |
Hans-G?nter@23660 | 4 VERSION="1.0.6" |
pankso@11898 | 5 CATEGORY="system-tools" |
Hans-G?nter@23660 | 6 TAGS="file-manager" |
pankso@11898 | 7 SHORT_DESC="Light, fast and easy to use file manager." |
pankso@11898 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
Hans-G?nter@23660 | 10 WEB_SITE="https://ignorantguru.github.io/spacefm/" |
pankso@11898 | 11 |
Hans-G?nter@23660 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23660 | 13 WGET_URL="https://github.com/IgnorantGuru/$PACKAGE/archive/$VERSION.tar.gz" |
Hans-G?nter@23660 | 14 |
Hans-G?nter@23660 | 15 DEPENDS="bash dbus dbus-glib expat gdk-pixbuf glib glibc-base gtk+ libgio |
Hans-G?nter@23660 | 16 libxcb startup-notification udev udevil util-linux-uuid xcb-util" |
Hans-G?nter@23660 | 17 BUILD_DEPENDS="coreutils-file-special dbus-dev dbus-glib-dev expat-dev |
Hans-G?nter@23660 | 18 gdk-pixbuf-dev gtk+-dev intltool libxcb-dev startup-notification-dev |
Hans-G?nter@23660 | 19 udev-dev xcb-util-dev" |
pankso@11898 | 20 |
pascal@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24299 | 23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 24 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
pankso@11898 | 27 # Rules to configure and make the package. |
pankso@11898 | 28 compile_rules() |
pankso@11898 | 29 { |
Hans-G?nter@23660 | 30 patch --input=$stuff/patches/prefdlg.ui-$VERSION \ |
Hans-G?nter@23660 | 31 data/ui/prefdlg.ui |
Hans-G?nter@23660 | 32 patch --input=$stuff/patches/settings.h-$VERSION \ |
Hans-G?nter@23660 | 33 src/settings.h |
Hans-G?nter@23660 | 34 patch --input=$stuff/patches/vfs-file-task.c-$VERSION \ |
Hans-G?nter@23660 | 35 src/vfs/vfs-file-task.c |
pascal@13788 | 36 |
Hans-G?nter@23660 | 37 ./configure \ |
Hans-G?nter@23660 | 38 --with-preferable-sudo="/usr/bin/subox" \ |
Hans-G?nter@23660 | 39 --disable-video-thumbnails \ |
Hans-G?nter@23660 | 40 --disable-pixmaps \ |
pankso@11898 | 41 $CONFIGURE_ARGS && |
Hans-G?nter@23660 | 42 make && |
Hans-G?nter@23660 | 43 make install |
pankso@11898 | 44 } |
pankso@11898 | 45 |
pankso@11898 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@11898 | 47 genpkg_rules() |
pankso@11898 | 48 { |
Hans-G?nter@23660 | 49 mkdir -p $fs/usr/share |
Hans-G?nter@23660 | 50 mkdir -p $fs/etc/spacefm |
Hans-G?nter@23660 | 51 |
Hans-G?nter@23660 | 52 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23660 | 53 for d in applications icons spacefm |
Hans-G?nter@23660 | 54 do |
Hans-G?nter@23660 | 55 cp -a $install/usr/share/$d $fs/usr/share |
Hans-G?nter@23660 | 56 done |
Hans-G?nter@23660 | 57 cp $stuff/spacefm.conf $fs/etc/spacefm |
Hans-G?nter@23660 | 58 cp -a $stuff/xdg $fs/etc |
Hans-G?nter@23660 | 59 |
pankso@13497 | 60 # Faenza --> SliTaz |
Hans-G?nter@23660 | 61 mv $fs/usr/share/icons/Faenza $fs/usr/share/icons/SliTaz |
Hans-G?nter@23660 | 62 rm -rf $fs/usr/share/icons/hicolor/128x128 |
Hans-G?nter@23660 | 63 |
pankso@13607 | 64 # /bin/bash --> /bin/sh |
Hans-G?nter@23660 | 65 sed -i s'|/bin/bash|/bin/sh|'g $fs/usr/bin/spacefm-auth |
pankso@11898 | 66 } |
Hans-G?nter@23660 | 67 |
Hans-G?nter@23660 | 68 post_install() |
Hans-G?nter@23660 | 69 { |
Hans-G?nter@23660 | 70 echo |
Hans-G?nter@23660 | 71 echo 'Remove or rename /etc/xdg/autostart/spacefm.desktop' |
Hans-G?nter@23660 | 72 echo 'if pcmanfm is to remain desktop manager.' |
Hans-G?nter@23660 | 73 } |