wok-next view wvstreams/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | d43bf7aae921 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="wvstreams"
4 VERSION="4.6.1"
5 CATEGORY="network"
6 SHORT_DESC="makes modem-based connection to Internet"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://code.google.com/archive/p/wvstreams/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/$TARBALL"
14 BUILD_DEPENDS="ppp-dev openssl10-dev xplc-dev readline-dev bash zlib-dev"
15 SPLIT="wvstreams-dev"
17 compile_rules() {
18 sed -i 's/wvuid.h"/&\n#include <unistd.h>/' utils/wvuid.cc
19 sed -i 's/ X509V3_EXT_METHOD/ const X509V3_EXT_METHOD/' crypto/wvx509.cc
20 sed -i 's/def MACOS/ 1/' streams/wvatomicfile.cc \
21 ipstreams/wvunixdgsocket.cc
23 CPPFLAGS=-I/usr/include/openssl-1.0 \
24 LDFLAGS=-L/usr/lib/openssl-1.0 \
25 ./configure \
26 --without-dbus \
27 --without-tcl \
28 --without-qt \
29 --without-pam \
30 --without-valgrind \
31 $CONFIGURE_ARGS &&
32 make \
33 -j1 \
34 COPTS="$CFLAGS -fPIC" \
35 CXXOPTS="$CXXFLAGS -fPIC -fpermissive -fno-tree-dce -fno-optimize-sibling-calls" \
36 VERBOSE=1 &&
37 make -j1 install || return 1
39 # --without-dbus still installs the .pc file
40 rm $install/usr/lib/pkgconfig/libwvdbus.pc
41 # --without-qt still installs the .pc file
42 rm $install/usr/lib/pkgconfig/libwvqt.pc
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 wvstreams)
48 copy @std
49 DEPENDS="openssl10 readline zlib ppp xplc"
50 TAGS="network 3G"
51 ;;
52 *-dev)
53 copy @dev
54 ;;
55 esac
56 }
58 post_remove_wvstreams() {
59 rm -rf "$1/etc/ppp/peers/wvdial"
60 }