wok view ofono/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents d7274e3b2cc0
children 274af13ca754
line source
1 # SliTaz package receipt.
3 PACKAGE="ofono"
4 VERSION="0.28"
5 CATEGORY="network"
6 SHORT_DESC="Stack for mobile telephony (GSM/UMTS) applications."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://ofono.org"
11 WGET_URL="http://www.kernel.org/pub/linux/network/$PACKAGE/$TARBALL"
13 DEPENDS="dbus glib udev"
14 BUILD_DEPENDS="dbus-dev udev-dev glib-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --localstatedir=/var \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 $CONFIGURE_ARGS &&
28 make && make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 # sysconfdir
35 mkdir -p $fs/etc
36 cp -a $install/etc/* $fs/etc
37 # udev rules
38 mkdir -p $fs/lib
39 cp -a $install/lib/udev $fs/lib
40 # bin
41 mkdir -p $fs/usr
42 cp -a $install/usr/sbin $fs/usr
43 # var
44 mkdir -p $fs/var
45 cp -a $install/var/lib $fs/var
46 }