rev |
line source |
pascal@11216
|
1 # SliTaz package receipt.
|
pascal@11216
|
2
|
pascal@11216
|
3 PACKAGE="avant-window-navigator"
|
pascal@11216
|
4 VERSION="0.4.0"
|
pascal@11216
|
5 CATEGORY="x-window"
|
pascal@11216
|
6 SHORT_DESC="Dock-like bar which sits at the bottom of the screen."
|
pascal@11216
|
7 MAINTAINER="pankso@slitaz.org"
|
pascal@15000
|
8 LICENSE="GPL2"
|
pascal@11216
|
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
|
pascal@11216
|
10 WEB_SITE="https://launchpad.net/awn/"
|
pascal@20669
|
11 WGET_URL="https://launchpad.net/awn/${VERSION%.*}/$VERSION/+download/$TARBALL"
|
al@17501
|
12 TAGS="panel"
|
pascal@11216
|
13
|
al@18673
|
14 DEPENDS="acl dbus-glib librsvg libwnck xorg-xcompmgr libgtop \
|
pankso@12552
|
15 libdesktop-agnostic"
|
al@18673
|
16 BUILD_DEPENDS="librsvg-dev libwnck-dev pygtk-dev python-xdg intltool \
|
al@18673
|
17 dbus-glib-dev python-dev libdesktop-agnostic-dev libgtop-dev GConf-dev"
|
pankso@12552
|
18
|
pascal@24373
|
19 # What is the latest version available today?
|
pascal@24373
|
20 current_version()
|
pascal@24373
|
21 {
|
pascal@24373
|
22 wget -O - https://github.com/p12tic/awn/tags 2>/dev/null | \
|
pascal@24373
|
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
|
pascal@24373
|
24 }
|
pascal@24373
|
25
|
pascal@11216
|
26 # Rules to configure and make the package.
|
pascal@11216
|
27 compile_rules()
|
pascal@11216
|
28 {
|
pascal@12651
|
29 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
|
pascal@17670
|
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
|
al@18673
|
31
|
pascal@11216
|
32 ./configure \
|
pascal@11216
|
33 --prefix=/usr \
|
pascal@11216
|
34 --sysconfdir=/etc \
|
pascal@11216
|
35 --with-desktop=agnostic \
|
pascal@11216
|
36 $CONFIGURE_ARGS &&
|
pascal@11216
|
37 make &&
|
pascal@11216
|
38 make DESTDIR=$DESTDIR install
|
pascal@11216
|
39 }
|
pascal@11216
|
40
|
pascal@11216
|
41 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pascal@11216
|
42 genpkg_rules()
|
pascal@11216
|
43 {
|
pascal@11216
|
44 mkdir -p $fs/usr/lib $fs/usr/share
|
pascal@15000
|
45 cp -a $install/usr/bin $fs/usr
|
pascal@15000
|
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
|
pascal@15000
|
47 cp -a $install/usr/share/$PACKAGE $fs/usr/share
|
pascal@15000
|
48 cp -a $install/usr/share/applications $fs/usr/share
|
al@18673
|
49 cp -a $install/usr/share/icons $fs/usr/share
|
pascal@11216
|
50 # Custom autostart script so we ensure xcompmgr is also started.
|
pascal@11216
|
51 cat > $fs/usr/bin/awn-autostart << _EOT_
|
pascal@11216
|
52 #!/bin/sh
|
pascal@11216
|
53 xcompmgr &
|
al@18673
|
54 sleep 4
|
al@18673
|
55 avant-window-navigator
|
pascal@11216
|
56 _EOT_
|
pascal@11216
|
57 }
|