wok-next view xfsprogs/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 | 0e8dadf052b9 |
children | f48456621a9d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xfsprogs"
4 VERSION="4.9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities for making, mounting, and manipulating XFS file-system"
7 MAINTAINER="patel@math.uga.edu"
8 LICENSE="GPL3"
9 WEB_SITE="http://oss.sgi.com/projects/xfs/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/$TARBALL"
14 BUILD_DEPENDS="gettext util-linux-uuid-dev readline-dev"
15 SPLIT="xfsprogs-dev"
17 compile_rules() {
18 # http://www.linuxfromscratch.org/blfs/view/stable/postlfs/xfsprogs.html
19 rm /bin/rpm # busybox rpm useless here
21 fix libtool &&
22 make \
23 DEBUG=-DNDEBUG \
24 INSTALL_USER=root \
25 INSTALL_GROUP=root \
26 LOCAL_CONFIGURE_OPTIONS="--enable-readline" &&
27 make PKG_DOC_DIR=/usr/share/doc/xfsprogs-$VERSION install &&
28 make PKG_DOC_DIR=/usr/share/doc/xfsprogs-$VERSION install-dev || return 1
30 rm -fv \
31 $install/usr/lib/libhandle.a \
32 $install/lib/libhandle.a \
33 $install/lib/libhandle.la \
34 $install/lib/libhandle.so
35 ln -sfv ../../lib/libhandle.so.1 $install/usr/lib/libhandle.so
36 sed -i "s@libdir='/lib@libdir='/usr/lib@" $install/usr/lib/libhandle.la
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 xfsprogs)
42 copy @std
43 DEPENDS="ncurses readline util-linux-blkid util-linux-uuid"
44 ;;
45 *-dev)
46 copy @dev
47 ;;
48 esac
49 }