wok-next view unixODBC/receipt @ rev 21094

Apply "force-arch" for selected dev packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 31 17:23:40 2018 +0200 (2018-12-31)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="unixODBC"
4 VERSION="2.3.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="ODBC for UNIX"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://www.unixodbc.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/unixodbc.html"
11 REPOLOGY="unixodbc"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="ftp://ftp.unixodbc.org/pub/unixODBC/$TARBALL"
16 COOKOPTS="force-arch" # different .h
18 BUILD_DEPENDS="readline-dev"
19 SPLIT="libunixODBC $PACKAGE $PACKAGE-dev"
21 compile_rules() {
22 ./configure \
23 --sysconfdir=/etc/unixODBC \
24 $CONFIGURE_ARGS &&
25 fix libtool &&
26 make $MAKEFLAGS &&
27 mkdir -p $install/etc/unixODBC/ &&
28 make DESTDIR=$install install || return 1
30 find doc -name "Makefile*" -delete
31 find doc -type f -exec chmod 644 '{}' \;
32 cook_pick_docs doc/*
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 libunixODBC)
38 copy *.so*
39 CAT="system-tools|libraries"
40 ;;
41 unixODBC)
42 copy @std @rm
43 DEPENDS="libunixODBC readline"
44 CONFIG_FILES="/etc/unixODBC/"
45 TAGS="database"
46 ;;
47 *-dev)
48 copy @dev
49 ;;
50 esac
51 }