wok annotate wvstreams/receipt @ rev 25788
xgalaga: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 26 08:52:14 2024 +0000 (2 months ago) |
parents | d765616e1f3d |
children |
rev | line source |
---|---|
jozee@5089 | 1 # SliTaz package receipt. |
jozee@5089 | 2 |
jozee@5089 | 3 PACKAGE="wvstreams" |
jozee@5089 | 4 VERSION="4.6.1" |
jozee@5089 | 5 CATEGORY="network" |
jozee@5089 | 6 SHORT_DESC="makes modem-based connection to Internet" |
jozee@5089 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15363 | 8 LICENSE="GPL2" |
jozee@5089 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20682 | 10 WEB_SITE="https://web.archive.org/web/20110504183753/http://alumnit.ca:80/wiki/index.php?page=WvDial" |
pascal@24979 | 11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL" |
pascal@13027 | 12 TAGS="network 3G" |
jozee@5089 | 13 |
pankso@10625 | 14 DEPENDS="ppp libssl xplc readline" |
pascal@12449 | 15 BUILD_DEPENDS="ppp-dev openssl-dev xplc-dev readline-dev bash" |
pankso@10625 | 16 |
pascal@24713 | 17 # What is the latest version available today? |
pascal@24713 | 18 current_version() |
pascal@24713 | 19 { |
pascal@24713 | 20 wget -O - https://github.com/apenwarr/wvstreams/tags 2>/dev/null | \ |
pascal@25601 | 21 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q' |
pascal@24713 | 22 } |
pascal@24713 | 23 |
jozee@5089 | 24 # Rules to configure and make the package. |
jozee@5089 | 25 compile_rules() |
jozee@5089 | 26 { |
jozee@5089 | 27 cd $src |
pascal@5485 | 28 sed -i 's/ X509V3_EXT_METHOD/ const X509V3_EXT_METHOD/' crypto/wvx509.cc |
pascal@9218 | 29 sed -i 's/def MACOS/ 1/' streams/wvatomicfile.cc \ |
pascal@9238 | 30 ipstreams/wvunixdgsocket.cc |
pankso@10625 | 31 ./configure $CONFIGURE_ARGS \ |
pankso@10625 | 32 --prefix=/usr \ |
pankso@10625 | 33 --without-dbus \ |
pankso@10625 | 34 --without-tcl \ |
pankso@10625 | 35 --without-qt \ |
pankso@10625 | 36 --without-pam \ |
pankso@10625 | 37 --without-valgrind && |
pankso@10625 | 38 make -j1 && make -j1 install |
jozee@5089 | 39 } |
jozee@5089 | 40 |
jozee@5089 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@5089 | 42 genpkg_rules() |
jozee@5089 | 43 { |
jozee@5089 | 44 mkdir -p $fs/usr/lib $fs/etc $fs/var |
pascal@15363 | 45 cp -a $install/usr/bin $fs/usr |
pascal@15363 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15363 | 47 cp -a $install/usr/lib/valgrind $fs/usr/lib |
pascal@15363 | 48 cp -a $install/usr/sbin $fs/usr |
pascal@15363 | 49 cp -a $install/usr/etc/* $fs/etc |
pascal@15363 | 50 cp -a $install/usr/var/* $fs/var |
jozee@5089 | 51 } |
jozee@5089 | 52 |
jozee@5089 | 53 post_remove() |
jozee@5089 | 54 { |
pascal@18730 | 55 rm -rf "$1/etc/ppp/peers/wvdial" |
jozee@5089 | 56 } |