wok annotate wbar2/receipt @ rev 20625
lazarus: force arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 31 19:46:12 2018 +0100 (2018-12-31) |
parents | 6dd5b7ae0e11 |
children | 6135577f4d08 |
rev | line source |
---|---|
gokhlayeh@8816 | 1 # SliTaz package receipt. |
gokhlayeh@8816 | 2 |
gokhlayeh@8816 | 3 PACKAGE="wbar2" |
erjo@15674 | 4 VERSION="2.3.4" |
gokhlayeh@8816 | 5 CATEGORY="system-tools" |
gokhlayeh@8816 | 6 SHORT_DESC="Quick launch bar." |
pankso@16379 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15363 | 8 LICENSE="GPL3" |
gokhlayeh@8816 | 9 SOURCE="wbar" |
erjo@15674 | 10 TARBALL="$SOURCE-$VERSION.tgz" |
gokhlayeh@8816 | 11 WEB_SITE="http://code.google.com/p/wbar/" |
gokhlayeh@8816 | 12 WGET_URL="http://wbar.googlecode.com/files/$TARBALL" |
pankso@9763 | 13 CONFIG_FILES="/etc/default/wbar/wbar.cfg" |
pankso@9763 | 14 TAGS="desktop launchbar" |
pankso@16169 | 15 HOST_ARCH="i486 arm" |
pankso@9763 | 16 |
pankso@16169 | 17 DEPENDS="ttf-dejavu imlib2 gtk+ libglade" |
pankso@16379 | 18 BUILD_DEPENDS="imlib2-dev gtk+-dev libglade-dev" |
pankso@16169 | 19 |
pankso@16169 | 20 # Handle cross compilation |
pankso@16169 | 21 case "$ARCH" in |
pankso@16379 | 22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool file" ;; |
pankso@16169 | 23 arm*) ARCH_ARGS="--disable-wbar-config" ;; |
pankso@16169 | 24 esac |
gokhlayeh@8816 | 25 |
gokhlayeh@8816 | 26 # Rules to configure and make the package. |
gokhlayeh@8816 | 27 compile_rules() |
gokhlayeh@8816 | 28 { |
pankso@16169 | 29 ./configure \ |
pankso@16169 | 30 --exec-prefix=/usr \ |
pankso@16169 | 31 --sysconfdir=/etc \ |
pankso@16379 | 32 $CONFIGURE_ARGS && |
gokhlayeh@8816 | 33 make && make install |
gokhlayeh@8816 | 34 } |
gokhlayeh@8816 | 35 |
gokhlayeh@8816 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@8816 | 37 genpkg_rules() |
gokhlayeh@8816 | 38 { |
erjo@15699 | 39 mkdir -p $fs/usr/share $fs/usr/share/applications |
erjo@15674 | 40 cp -a $install/usr/bin $fs/usr |
pankso@16169 | 41 cp -a $install/etc $fs |
erjo@15674 | 42 cp -a $install/usr/share/pixmaps $fs/usr/share |
erjo@15674 | 43 cp -a $install/usr/share/wbar $fs/usr/share |
erjo@15699 | 44 mv $fs/etc/wbar.d/wbar.desktop $fs/usr/share/applications |
pankso@16169 | 45 case "$ARCH" in |
pankso@16169 | 46 i?86) cp -a $stuff/wbar.cfg $fs/etc/wbar.d ;; |
pankso@16169 | 47 arm*) cp -a $stuff/wbar-arm.cfg $fs/etc/wbar.d/wbar.cfg ;; |
pankso@16169 | 48 esac |
pankso@9325 | 49 } |