wok annotate jwm/receipt @ rev 24837
updated libtdb and libtdb-dev (1.4.3 -> 1.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 25 07:38:22 2022 +0100 (2022-03-25) |
parents | ad8b9ff412d2 |
children |
rev | line source |
---|---|
pankso@25 | 1 # SliTaz package receipt. |
pankso@25 | 2 |
pankso@25 | 3 PACKAGE="jwm" |
Hans-G?nter@24693 | 4 VERSION="2.4.1" |
pankso@25 | 5 CATEGORY="x-window" |
Hans-G?nter@21088 | 6 TAGS="window-manager" |
Hans-G?nter@21088 | 7 SHORT_DESC="A light Window Manager for the X window system." |
pankso@25 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15215 | 9 LICENSE="GPL2" |
Hans-G?nter@24693 | 10 WEB_SITE="https://joewing.net/projects/jwm/" |
Hans-G?nter@21088 | 11 |
pankso@15940 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21088 | 13 WGET_URL="${WEB_SITE}releases/$TARBALL" |
Hans-G?nter@21088 | 14 |
Hans-G?nter@24693 | 15 SUGGESTED="jwm-lang" |
Hans-G?nter@24693 | 16 DEPENDS="hsetroot imlib2 libjpeg libpng librsvg libxml2 slitaz-configs-base |
Hans-G?nter@24693 | 17 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft |
Hans-G?nter@24693 | 18 xorg-libXinerama xorg-libXmu xorg-libXpm xorg-libXrender |
Hans-G?nter@21088 | 19 xorg-libXt xorg-xclock xorg-xload" |
Hans-G?nter@24693 | 20 BUILD_DEPENDS="cairo-dev freetype-dev jpeg-dev libpng-dev librsvg-dev |
Hans-G?nter@24693 | 21 libxml2-dev xorg-libX11-dev xorg-libXft-dev" |
Hans-G?nter@24693 | 22 |
pankso@16067 | 23 HOST_ARCH="i486 arm" |
pankso@25 | 24 |
pankso@16067 | 25 # Handle cross compilation |
pankso@16067 | 26 case "$ARCH" in |
pankso@16081 | 27 arm) |
pankso@16081 | 28 DEPENDS="$DEPENDS joe lynx ytree" |
pankso@16081 | 29 ARCH_ARGS="--disable-nls" ;; |
pankso@16081 | 30 i?86) |
pankso@16081 | 31 DEPENDS="$DEPENDS compton nano" ;; |
pankso@16067 | 32 esac |
pankso@12019 | 33 |
pascal@24433 | 34 # What is the latest version available today? |
pascal@24433 | 35 current_version() |
pascal@24433 | 36 { |
pascal@24433 | 37 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24433 | 38 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24433 | 39 } |
pascal@24433 | 40 |
pankso@25 | 41 # Rules to configure and make the package. |
pankso@25 | 42 compile_rules() |
pankso@25 | 43 { |
pankso@15940 | 44 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u |
pankso@15940 | 45 #touch done.resize-backgound.u |
Hans-G?nter@24693 | 46 |
Hans-G?nter@21088 | 47 ./configure \ |
Hans-G?nter@21088 | 48 --prefix=/usr \ |
Hans-G?nter@21088 | 49 --mandir=/usr/share/man \ |
Hans-G?nter@24693 | 50 --datadir=/usr/share \ |
Hans-G?nter@21088 | 51 --sysconfdir=/etc/xdg/jwm \ |
Hans-G?nter@24693 | 52 --enable-cairo=yes \ |
Hans-G?nter@24693 | 53 --enable-confirm=no \ |
Hans-G?nter@24693 | 54 --enable-nls=yes \ |
Hans-G?nter@24693 | 55 --enable-rpath=no \ |
Hans-G?nter@24693 | 56 --enable-rsvg=yes \ |
Hans-G?nter@24693 | 57 --enable-xft=yes \ |
Hans-G?nter@24693 | 58 $CONFIGURE_ARGS \ |
Hans-G?nter@24693 | 59 $ARCH_ARGS && |
Hans-G?nter@24693 | 60 sed -i 's|mkdir_p = @mkdir_p@|mkdir_p = /bin/mkdir -p|' \ |
Hans-G?nter@24693 | 61 po/Makefile && |
Hans-G?nter@24693 | 62 make && |
Hans-G?nter@21088 | 63 make install |
pankso@25 | 64 } |
pankso@25 | 65 |
pankso@16067 | 66 testsuite() |
pankso@16067 | 67 { |
pankso@16067 | 68 readelf -h $install/usr/bin/jwm |
pankso@16067 | 69 } |
pankso@16067 | 70 |
pankso@25 | 71 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@25 | 72 genpkg_rules() |
pankso@25 | 73 { |
Hans-G?nter@21088 | 74 mkdir -p $fs/etc/xdg/jwm |
Hans-G?nter@21088 | 75 mkdir -p $fs/usr/share |
Hans-G?nter@21088 | 76 |
Hans-G?nter@24693 | 77 cook_copy_folders bin |
Hans-G?nter@21088 | 78 |
Hans-G?nter@24693 | 79 # Simple and default configuration file. |
Hans-G?nter@24693 | 80 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc |
Hans-G?nter@24693 | 81 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc |
Hans-G?nter@21088 | 82 |
Hans-G?nter@24693 | 83 cp -r $stuff/xsessions $fs/usr/share |
pankso@25 | 84 } |
pankso@12308 | 85 |
pankso@12308 | 86 post_install() |
pankso@12308 | 87 { |
Hans-G?nter@24693 | 88 if [ -d "$1/etc/jwm" ] |
Hans-G?nter@24693 | 89 then |
Hans-G?nter@24693 | 90 echo "Removing old system wide configuration files: /etc/jwm" |
Hans-G?nter@24693 | 91 rm -rf "$1/etc/jwm" |
pankso@12407 | 92 fi |
Hans-G?nter@21088 | 93 |
Hans-G?nter@21088 | 94 # Adding WM to SLIM available sessions. |
pascal@18730 | 95 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
Hans-G?nter@24693 | 96 if ! echo "$res" | grep -q $PACKAGE |
Hans-G?nter@24693 | 97 then |
pankso@12308 | 98 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
Hans-G?nter@24693 | 99 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ |
Hans-G?nter@24693 | 100 "$1/etc/slim.conf" |
pankso@12308 | 101 status |
pankso@12308 | 102 fi |
pascal@18707 | 103 true |
pankso@12308 | 104 } |
pankso@12308 | 105 |
pankso@12308 | 106 post_remove() |
pankso@12308 | 107 { |
pankso@12308 | 108 # Remove WM from SLIM available sessions. |
Hans-G?nter@24693 | 109 if grep -q $PACKAGE "$1/etc/slim.conf" |
Hans-G?nter@24693 | 110 then |
Hans-G?nter@24693 | 111 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
pankso@12308 | 112 fi |
pankso@12308 | 113 } |