wok annotate wammu/receipt @ rev 25060

Up fakeroot (1.29)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 07 08:21:12 2022 +0000 (2022-06-07)
parents f51604223163
children
rev   line source
pascal@11228 1 # SliTaz package receipt.
pascal@11228 2
pascal@11228 3 PACKAGE="wammu"
Hans-G?nter@22118 4 VERSION="0.44"
pascal@11228 5 CATEGORY="system-tools"
Hans-G?nter@22118 6 TAGS="bluetooth"
Hans-G?nter@22118 7 SHORT_DESC="Mobile phone manager."
pascal@11228 8 MAINTAINER="pankso@slitaz.org"
pascal@15002 9 LICENSE="GPL2"
Hans-G?nter@22118 10 WEB_SITE="https://wammu.eu/wammu/"
Hans-G?nter@22118 11
pascal@11228 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@11228 13 WGET_URL="$SF_MIRROR/gammu/$PACKAGE/$VERSION/$TARBALL"
pascal@11228 14
pascal@22853 15 DEPENDS="python-six python-gammu python-pybluez wxpython"
Hans-G?nter@22118 16 BUILD_DEPENDS="gammu-dev python-dev python-setuptools wxpython-dev"
pascal@15002 17
pascal@24304 18 # What is the latest version available today?
pascal@24304 19 current_version()
pascal@24304 20 {
pascal@24304 21 wget -O - https://github.com/gammu/wammu/tags 2>/dev/null | \
pascal@24304 22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24304 23 }
pascal@24304 24
pascal@11228 25 # Rules to configure and make the package.
pascal@11228 26 compile_rules()
pascal@11228 27 {
pascal@11228 28 python setup.py build &&
pascal@15002 29 python setup.py install --root=$DESTDIR
pascal@11228 30 }
pascal@11228 31
pascal@11228 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11228 33 genpkg_rules()
pascal@11228 34 {
pascal@11228 35 mkdir -p $fs/usr/share
Hans-G?nter@22118 36
Hans-G?nter@22118 37 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22118 38 cp -a $install/usr/lib $fs/usr
Hans-G?nter@22118 39 cp -a $install/usr/share/Wammu $fs/usr/share
Hans-G?nter@22118 40 cp -a $install/usr/share/locale $fs/usr/share
pascal@11228 41 }