wok-next view wbar2/receipt @ rev 20458

Unlock x86_64 architecture
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 12:12:14 2018 +0200 (2018-03-02)
parents 39d56fc82225
children da9e80c5d4bb
line source
1 # SliTaz package receipt.
3 PACKAGE="wbar2"
4 VERSION="2.3.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Quick launch bar."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 SOURCE="wbar"
10 TARBALL="$SOURCE-$VERSION.tgz"
11 WEB_SITE="http://code.google.com/p/wbar/"
12 WGET_URL="http://wbar.googlecode.com/files/$TARBALL"
13 CONFIG_FILES="/etc/default/wbar/wbar.cfg"
14 TAGS="desktop launchbar"
16 DEPENDS="ttf-dejavu imlib2 gtk+ libglade"
17 BUILD_DEPENDS="imlib2-dev gtk+-dev libglade-dev"
19 # Handle cross compilation
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool file" ;;
22 arm*) ARCH_ARGS="--disable-wbar-config" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure CXXFLAGS="-Wno-error=literal-suffix" \
29 --exec-prefix=/usr \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share $fs/usr/share/applications
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/etc $fs
41 cp -a $install/usr/share/pixmaps $fs/usr/share
42 cp -a $install/usr/share/wbar $fs/usr/share
43 mv $fs/etc/wbar.d/wbar.desktop $fs/usr/share/applications
44 case "$ARCH" in
45 i?86) cp -a $stuff/wbar.cfg $fs/etc/wbar.d ;;
46 arm*) cp -a $stuff/wbar-arm.cfg $fs/etc/wbar.d/wbar.cfg ;;
47 esac
48 }