wok-next annotate libblockdev/receipt @ rev 20577
More fix libtool
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 03:34:33 2018 +0300 (2018-04-14) |
parents | 2d54d154d5ca |
children | 1ca369c9f448 |
rev | line source |
---|---|
al@19957 | 1 # SliTaz package receipt v2. |
al@19957 | 2 |
al@19957 | 3 PACKAGE="libblockdev" |
al@20529 | 4 VERSION="2.16" |
al@19957 | 5 CATEGORY="libs" |
al@19957 | 6 SHORT_DESC="A library for manipulating block devices" |
al@19957 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19957 | 8 LICENSE="LGPL2.1" |
al@19957 | 9 WEB_SITE="https://github.com/storaged-project/libblockdev/" |
al@19957 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libblockdev.html" |
al@19957 | 11 |
al@19957 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20529 | 13 WGET_URL="https://github.com/storaged-project/libblockdev/releases/download/$VERSION-1/$TARBALL" |
al@19957 | 14 |
al@19957 | 15 BUILD_DEPENDS="automake libtool python glib-dev eudev-dev cryptsetup-dev \ |
al@19957 | 16 nss-dev coreutils-file-special libdevmapper-dev kmod-dev parted-dev \ |
al@20529 | 17 util-linux-mount-dev util-linux-blkid-dev libbytesize-dev volume_key-dev \ |
al@20529 | 18 python3" |
al@20529 | 19 SPLIT="libblockdev-python libblockdev-python3 libblockdev libblockdev-dev" |
al@19957 | 20 |
al@19957 | 21 compile_rules() { |
al@19957 | 22 ./configure \ |
al@20529 | 23 --without-gtk-doc \ |
al@19957 | 24 --without-dm \ |
al@20529 | 25 --with-python3 \ |
al@19957 | 26 $CONFIGURE_ARGS && |
al@20406 | 27 fix libtool && |
al@19957 | 28 make && make install |
al@19957 | 29 } |
al@19957 | 30 |
al@19957 | 31 genpkg_rules() { |
al@19957 | 32 case $PACKAGE in |
al@19957 | 33 *-python) |
al@20529 | 34 copy python2*/ |
al@20529 | 35 CAT="libs|Python2 bindings" |
al@19957 | 36 DEPENDS="libblockdev python" |
al@19957 | 37 ;; |
al@20529 | 38 *-python3) |
al@20529 | 39 copy python3*/ |
al@20529 | 40 CAT="libs|Python3 bindings" |
al@20529 | 41 DEPENDS="libblockdev python3" |
al@20529 | 42 ;; |
al@20406 | 43 libblockdev) |
al@20406 | 44 copy @std @rm |
al@20406 | 45 DEPENDS="cryptsetup eudev glib kmod libbytesize libdevmapper \ |
al@20406 | 46 liblzma nss parted util-linux-blkid util-linux-mount volume_key \ |
al@20406 | 47 zlib" |
al@20406 | 48 ;; |
al@19957 | 49 *-dev) |
al@19957 | 50 copy @dev |
al@19957 | 51 DEPENDS="libblockdev libblockdev-python cryptsetup-dev eudev-dev \ |
al@19957 | 52 glib-dev gmp-dev gpgme-dev kmod-dev libassuan-dev libbytesize-dev \ |
al@19957 | 53 libdevmapper-dev libffi-dev libgcrypt-dev libgpg-error-dev \ |
al@19957 | 54 mpfr-dev nspr-dev nss-dev parted-dev pcre-dev util-linux-blkid-dev \ |
al@19957 | 55 util-linux-mount-dev util-linux-uuid-dev volume_key-dev xz-dev \ |
al@19957 | 56 zlib-dev" |
al@19957 | 57 ;; |
al@19957 | 58 esac |
al@19957 | 59 } |