wok-next annotate wvstreams/receipt @ rev 20430

fake-sane: fix copy-paste typo
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 24 13:29:11 2018 +0200 (2018-01-24)
parents 4f615ac29298
children e6615350078d
rev   line source
pascal@20131 1 # SliTaz package receipt v2.
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"
jozee@5089 10 WEB_SITE="http://wvstreams.googlecode.com"
jozee@5089 11 WGET_URL="http://wvstreams.googlecode.com/files/$TARBALL"
jozee@5089 12
pascal@20005 13 BUILD_DEPENDS="ppp-dev openssl-dev xplc-dev readline-dev bash zlib-dev"
pascal@20131 14 SPLIT="wvstreams wvstreams-dev"
pankso@10625 15
jozee@5089 16 # Rules to configure and make the package.
jozee@5089 17 compile_rules()
jozee@5089 18 {
pascal@20135 19 sed -i 's/wvuid.h"/&\n#include <unistd.h>/' utils/wvuid.cc
pascal@5485 20 sed -i 's/ X509V3_EXT_METHOD/ const X509V3_EXT_METHOD/' crypto/wvx509.cc
pascal@9218 21 sed -i 's/def MACOS/ 1/' streams/wvatomicfile.cc \
pascal@9238 22 ipstreams/wvunixdgsocket.cc
pankso@10625 23 ./configure $CONFIGURE_ARGS \
pankso@10625 24 --prefix=/usr \
pankso@10625 25 --without-dbus \
pankso@10625 26 --without-tcl \
pankso@10625 27 --without-qt \
pankso@10625 28 --without-pam \
pankso@10625 29 --without-valgrind &&
pankso@10625 30 make -j1 && make -j1 install
jozee@5089 31 }
jozee@5089 32
jozee@5089 33 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@5089 34 genpkg_rules()
jozee@5089 35 {
pascal@20131 36 case $PACKAGE in
pascal@20131 37 wvstreams)
pascal@20131 38 TAGS="network 3G"
pascal@20131 39 DEPENDS="ppp libssl xplc readline"
pascal@20131 40 mkdir -p $fs/usr/lib $fs/etc $fs/var
pascal@20131 41 cp -a $install/usr/bin $fs/usr
pascal@20131 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@20131 43 cp -a $install/usr/lib/valgrind $fs/usr/lib
pascal@20131 44 cp -a $install/usr/sbin $fs/usr
pascal@20131 45 cp -a $install/usr/etc/* $fs/etc
pascal@20131 46 cp -a $install/usr/var/* $fs/var
pascal@20131 47 ;;
pascal@20131 48 wvstreams-dev)
pascal@20131 49 CAT="development|wvstreams devel files."
pascal@20131 50 DEPENDS="pkg-config"
pascal@20131 51 mkdir -p $fs/usr/lib
pascal@20131 52 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
pascal@20131 53 cp -a $install/usr/lib/*.*a $fs/usr/lib
pascal@20131 54 cp -a $install/usr/include/ $fs/usr
pascal@20131 55 ;;
pascal@20131 56 esac
jozee@5089 57 }
jozee@5089 58
pascal@20131 59 post_remove_wvstreams()
jozee@5089 60 {
pascal@18730 61 rm -rf "$1/etc/ppp/peers/wvdial"
jozee@5089 62 }