talimat 671 B

123456789101112131415161718192021222324252627
  1. # Description: XFS filesystem utilities
  2. # URL: http://oss.sgi.com/projects/xfs/
  3. # Packager: pierre at nutyx dot org
  4. name=xfsprogs
  5. version=4.3.0
  6. release=1
  7. source=(ftp://oss.sgi.com/projects/xfs/cmd_tars/$name-$version.tar.gz)
  8. build() {
  9. cd $name-$version
  10. make DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root \
  11. LOCAL_CONFIGURE_OPTIONS="--enable-readline"
  12. make DIST_ROOT=$PKG install
  13. make DIST_ROOT=$PKG install-dev
  14. if [ "`uname -m `" == "x86_64" ];then
  15. LIB="lib64"
  16. else
  17. LIB="lib"
  18. fi
  19. rm -rfv $PKG/$LIB/libhandle.{a,la,so}
  20. ln -sfv ../../$LIB/libhandle.so.1 $PKG/usr/$LIB/libhandle.so
  21. sed -i "s@libdir='/$LIB@libdir='/usr/$LIB@g" $PKG/usr/$LIB/libhandle.la
  22. }