wok-next annotate btrfs-progs/receipt @ rev 19925

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