wok-next view btrfs-progs/receipt @ rev 20671

qemu, qemu-light: define prefix
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 11 14:51:17 2018 +0300 (2018-05-11)
parents d43bf7aae921
children f48456621a9d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="btrfs-progs"
4 VERSION="4.9.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Btrfs Filesystem"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://btrfs.wiki.kernel.org/index.php/Main_Page"
11 TARBALL="$PACKAGE-v$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/$TARBALL"
14 BUILD_DEPENDS="libcomerr util-linux-uuid-dev e2fsprogs e2fsprogs-dev zlib-dev \
15 acl-dev util-linux-blkid-dev lzo-dev" #autoconf automake"
16 SPLIT="btrfs-mkfs btrfs-progs btrfs-libs btrfs-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # http://www.linuxfromscratch.org/blfs/view/stable/postlfs/btrfs-progs.html
22 sed -i '1,106 s/\.gz//g' Documentation/Makefile.in &&
24 ./configure \
25 --prefix=/usr \
26 --bindir=/bin \
27 --libdir=/lib \
28 --disable-documentation \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install &&
33 mkdir -p $install/usr/lib/ &&
34 ln -sfv ../../lib/$(readlink $install/lib/libbtrfs.so) \
35 $install/usr/lib/libbtrfs.so &&
36 rm -v $install/lib/libbtrfs.a $install/lib/libbtrfs.so
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 btrfs-mkfs)
44 copy mkfs.btrfs
45 CAT="system-tools|creation tool"
46 DEPENDS="lzo util-linux-blkid util-linux-uuid zlib"
47 ;;
48 btrfs-progs)
49 copy bin/ @rm
50 TAGS="filesystem fault-tolerance"
51 PROVIDE="btrfs-tools"
52 DEPENDS="e2fsprogs libcomerr lzo util-linux-blkid util-linux-uuid \
53 zlib acl btrfs-mkfs"
54 ;;
55 btrfs-libs)
56 copy *.so*
57 CAT="system-tools|library"
58 DEPENDS="lzo util-linux-blkid util-linux-uuid zlib"
59 ;;
60 *-dev) copy @dev;;
61 esac
62 }