wok-next view libblockdev/receipt @ rev 20529
Up libblockdev (2.16), nspr (4.18), openssh (7.6p1), udisks2 (2.7.6).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 24 15:55:55 2018 +0200 (2018-03-24) |
parents | 2d54d154d5ca |
children | 1ca369c9f448 |
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 && make install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 *-python)
34 copy python2*/
35 CAT="libs|Python2 bindings"
36 DEPENDS="libblockdev python"
37 ;;
38 *-python3)
39 copy python3*/
40 CAT="libs|Python3 bindings"
41 DEPENDS="libblockdev python3"
42 ;;
43 libblockdev)
44 copy @std @rm
45 DEPENDS="cryptsetup eudev glib kmod libbytesize libdevmapper \
46 liblzma nss parted util-linux-blkid util-linux-mount volume_key \
47 zlib"
48 ;;
49 *-dev)
50 copy @dev
51 DEPENDS="libblockdev libblockdev-python cryptsetup-dev eudev-dev \
52 glib-dev gmp-dev gpgme-dev kmod-dev libassuan-dev libbytesize-dev \
53 libdevmapper-dev libffi-dev libgcrypt-dev libgpg-error-dev \
54 mpfr-dev nspr-dev nss-dev parted-dev pcre-dev util-linux-blkid-dev \
55 util-linux-mount-dev util-linux-uuid-dev volume_key-dev xz-dev \
56 zlib-dev"
57 ;;
58 esac
59 }