wok-next annotate libblockdev/receipt @ rev 20905
Update packages from ISO and LFS backages (all but toolchain)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 07 00:30:45 2018 +0300 (2018-08-07) |
parents | 1ca369c9f448 |
children | b5f2a6ab88b6 |
rev | line source |
---|---|
al@19957 | 1 # SliTaz package receipt v2. |
al@19957 | 2 |
al@19957 | 3 PACKAGE="libblockdev" |
al@20905 | 4 VERSION="2.18" |
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@20905 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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@20905 | 15 BUILD_DEPENDS="automake libtool python python3 glib-dev \ |
al@20905 | 16 gobject-introspection-dev eudev-dev kmod-dev cryptsetup-dev nss-dev \ |
al@20905 | 17 coreutils-file-special volume_key-dev libdevmapper-dev parted-dev \ |
al@20905 | 18 util-linux-mount-dev util-linux-blkid-dev libbytesize-dev ndctl-dev yaml-dev" |
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@20679 | 28 make && |
al@20679 | 29 make install |
al@19957 | 30 } |
al@19957 | 31 |
al@19957 | 32 genpkg_rules() { |
al@19957 | 33 case $PACKAGE in |
al@19957 | 34 *-python) |
al@20529 | 35 copy python2*/ |
al@20529 | 36 CAT="libs|Python2 bindings" |
al@19957 | 37 DEPENDS="libblockdev python" |
al@19957 | 38 ;; |
al@20529 | 39 *-python3) |
al@20529 | 40 copy python3*/ |
al@20529 | 41 CAT="libs|Python3 bindings" |
al@20529 | 42 DEPENDS="libblockdev python3" |
al@20529 | 43 ;; |
al@20406 | 44 libblockdev) |
al@20406 | 45 copy @std @rm |
al@20406 | 46 DEPENDS="cryptsetup eudev glib kmod libbytesize libdevmapper \ |
al@20905 | 47 ndctl nss parted util-linux-blkid util-linux-mount util-linux-uuid \ |
al@20905 | 48 volume_key yaml" |
al@20406 | 49 ;; |
al@19957 | 50 *-dev) |
al@19957 | 51 copy @dev |
al@20679 | 52 DEPENDS="libblockdev libblockdev-python glib-dev" |
al@19957 | 53 ;; |
al@19957 | 54 esac |
al@19957 | 55 } |