wok-next annotate unixODBC/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | 10df65db91ad |
children | cd7906120828 |
rev | line source |
---|---|
pascal@20177 | 1 # SliTaz package receipt v2. |
pascal@1186 | 2 |
pascal@1186 | 3 PACKAGE="unixODBC" |
al@20647 | 4 VERSION="2.3.5" |
pascal@1186 | 5 CATEGORY="system-tools" |
al@20534 | 6 SHORT_DESC="ODBC for UNIX" |
pascal@1186 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
al@20534 | 9 WEB_SITE="http://www.unixodbc.org/" |
al@20647 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/unixodbc.html" |
al@20534 | 11 |
pascal@1186 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20177 | 13 WGET_URL="ftp://ftp.unixodbc.org/pub/unixODBC/$TARBALL" |
pascal@14996 | 14 |
pascal@16473 | 15 BUILD_DEPENDS="readline-dev" |
al@20534 | 16 SPLIT="libunixODBC unixODBC unixODBC-dev" |
pascal@1186 | 17 |
al@20534 | 18 compile_rules() { |
pankso@16079 | 19 ./configure \ |
al@20647 | 20 --sysconfdir=/etc/unixODBC \ |
pankso@16079 | 21 $CONFIGURE_ARGS && |
al@20604 | 22 fix libtool && |
gokhlayeh@11574 | 23 make $MAKEFLAGS && |
al@20647 | 24 mkdir -p $install/etc/unixODBC/ && |
al@20647 | 25 make DESTDIR=$DESTDIR install || return 1 |
al@20647 | 26 |
al@20647 | 27 find doc -name "Makefile*" -delete |
al@20647 | 28 find doc -type f -exec chmod 644 '{}' \; |
al@20647 | 29 cook_pick_docs doc/* |
pascal@1186 | 30 } |
pascal@1186 | 31 |
al@20534 | 32 genpkg_rules() { |
pascal@20177 | 33 case $PACKAGE in |
al@20534 | 34 libunixODBC) |
al@20534 | 35 copy *.so* |
al@20534 | 36 CAT="system-tools|libraries" |
al@20534 | 37 ;; |
al@20534 | 38 unixODBC) |
al@20534 | 39 copy @std @rm |
al@20534 | 40 DEPENDS="libunixODBC readline" |
al@20647 | 41 CONFIG_FILES="/etc/unixODBC/" |
al@20534 | 42 TAGS="database" |
al@20534 | 43 ;; |
al@20534 | 44 *-dev) |
al@20534 | 45 copy @dev |
al@20534 | 46 ;; |
pascal@20177 | 47 esac |
pascal@1186 | 48 } |