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

Up cookutils (1066); add xmahjongg
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 00:54:44 2018 +0300 (2018-06-06)
parents d43bf7aae921
children f48456621a9d
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
al@20584 14 BUILD_DEPENDS="libcomerr util-linux-uuid-dev e2fsprogs e2fsprogs-dev zlib-dev \
al@20584 15 acl-dev 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@20513 49 copy bin/ @rm
al@19755 50 TAGS="filesystem fault-tolerance"
al@19755 51 PROVIDE="btrfs-tools"
al@19755 52 DEPENDS="e2fsprogs libcomerr lzo util-linux-blkid util-linux-uuid \
al@19755 53 zlib acl btrfs-mkfs"
al@19755 54 ;;
al@19755 55 btrfs-libs)
al@19755 56 copy *.so*
al@19789 57 CAT="system-tools|library"
al@19755 58 DEPENDS="lzo util-linux-blkid util-linux-uuid zlib"
al@19755 59 ;;
al@19755 60 *-dev) copy @dev;;
al@19755 61 esac
pascal@3002 62 }