wok-next view libblockdev/receipt @ rev 20827

new tor: 0.3.3.7
author Erkan Yilmaz <erkan@slitaz.org>
date Thu Jun 14 10:13:14 2018 +0000 (2018-06-14)
parents 555cf3b9f1ff
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libblockdev"
4 VERSION="2.16"
5 CATEGORY="libs"
6 SHORT_DESC="A library for manipulating block devices"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://github.com/storaged-project/libblockdev/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libblockdev.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/storaged-project/libblockdev/releases/download/$VERSION-1/$TARBALL"
15 BUILD_DEPENDS="automake libtool python glib-dev eudev-dev cryptsetup-dev \
16 nss-dev coreutils-file-special libdevmapper-dev kmod-dev parted-dev \
17 util-linux-mount-dev util-linux-blkid-dev libbytesize-dev volume_key-dev \
18 python3"
19 SPLIT="libblockdev-python libblockdev-python3 libblockdev libblockdev-dev"
21 compile_rules() {
22 ./configure \
23 --without-gtk-doc \
24 --without-dm \
25 --with-python3 \
26 $CONFIGURE_ARGS &&
27 fix libtool &&
28 make &&
29 make install
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 *-python)
35 copy python2*/
36 CAT="libs|Python2 bindings"
37 DEPENDS="libblockdev python"
38 ;;
39 *-python3)
40 copy python3*/
41 CAT="libs|Python3 bindings"
42 DEPENDS="libblockdev python3"
43 ;;
44 libblockdev)
45 copy @std @rm
46 DEPENDS="cryptsetup eudev glib kmod libbytesize libdevmapper \
47 nss parted util-linux-blkid util-linux-mount volume_key"
48 ;;
49 *-dev)
50 copy @dev
51 DEPENDS="libblockdev libblockdev-python glib-dev"
52 ;;
53 esac
54 }