wok-next view xfsprogs/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children d457c4e37c1b
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xfsprogs"
4 VERSION="4.9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Making, mounting, and manipulating XFS filesystem"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://oss.sgi.com/projects/xfs/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/xfsprogs.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/$TARBALL"
15 BUILD_DEPENDS="gettext-dev util-linux-uuid-dev readline-dev \
16 util-linux-blkid-dev"
17 SPLIT="$PACKAGE-dev"
19 compile_rules() {
20 rm /bin/rpm # busybox rpm useless here
22 fix libtool &&
23 make \
24 DEBUG=-DNDEBUG \
25 INSTALL_USER=root \
26 INSTALL_GROUP=root \
27 LOCAL_CONFIGURE_OPTIONS="--enable-readline" &&
28 make PKG_DOC_DIR=/usr/share/doc/xfsprogs-$VERSION install &&
29 make PKG_DOC_DIR=/usr/share/doc/xfsprogs-$VERSION install-dev || return 1
31 rm -fv \
32 $install/usr/lib/libhandle.a \
33 $install/lib/libhandle.a \
34 $install/lib/libhandle.la \
35 $install/lib/libhandle.so
36 ln -sfv ../../lib/libhandle.so.1 $install/usr/lib/libhandle.so
37 sed -i "s@libdir='/lib@libdir='/usr/lib@" $install/usr/lib/libhandle.la
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 xfsprogs)
43 copy @std
44 DEPENDS="ncurses readline util-linux-blkid util-linux-uuid"
45 ;;
46 *-dev)
47 copy @dev
48 ;;
49 esac
50 }