wok-next view libblockdev/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
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 }