wok annotate gammu/receipt @ rev 25113
Use https://download.tuxfamily.org/ for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 25 14:36:45 2022 +0000 (2022-06-25) |
parents | af8d823a3077 |
children |
rev | line source |
---|---|
pankso@5674 | 1 # SliTaz package receipt. |
pankso@5674 | 2 |
pankso@5674 | 3 PACKAGE="gammu" |
Hans-G?nter@24585 | 4 VERSION="1.42.0" |
pankso@5674 | 5 CATEGORY="system-tools" |
Hans-G?nter@20946 | 6 TAGS="bluetooth" |
Hans-G?nter@20946 | 7 SHORT_DESC="Library and utility to control cell phone." |
pankso@5674 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15255 | 9 LICENSE="GPL2" |
Hans-G?nter@20946 | 10 WEB_SITE="https://wammu.eu/gammu/" |
Hans-G?nter@20946 | 11 |
pankso@5674 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@19912 | 13 WGET_URL="https://dl.cihar.com/gammu/releases/$TARBALL" |
pankso@5674 | 14 |
Hans-G?nter@22796 | 15 DEPENDS="bluez libcurl libusb-compat sqlite" |
pascal@15255 | 16 BUILD_DEPENDS="$DEPENDS cmake" |
pascal@15255 | 17 |
pascal@24445 | 18 # What is the latest version available today? |
pascal@24445 | 19 current_version() |
pascal@24445 | 20 { |
pascal@24445 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24445 | 22 sed '/gammu-[0-9]/!d;s|.*gammu-||;s|/.*||;s|-|.|g;q' |
pascal@24445 | 23 } |
pascal@24445 | 24 |
pankso@5674 | 25 # Rules to configure and make the package. |
pankso@5674 | 26 compile_rules() |
pankso@5674 | 27 { |
Hans-G?nter@24585 | 28 mkdir _build && |
Hans-G?nter@24585 | 29 cd _build && |
Hans-G?nter@22796 | 30 cmake .. \ |
Hans-G?nter@24585 | 31 -D CMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@24585 | 32 -D BUILD_SHARED_LIBS=ON && |
Hans-G?nter@24585 | 33 make && |
Hans-G?nter@24585 | 34 make install DESTDIR=$DESTDIR |
pankso@5674 | 35 } |
pankso@5674 | 36 |
pankso@5674 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5674 | 38 genpkg_rules() |
pankso@5674 | 39 { |
Hans-G?nter@24585 | 40 cook_copy_folders bin |
Hans-G?nter@24585 | 41 rm $fs/usr/bin/gammu-config |
Hans-G?nter@24585 | 42 cook_copy_files *.so* |
pankso@5674 | 43 } |