talimat 799 B

12345678910111213141516171819202122232425262728293031
  1. # Description: Utilities to administer the extended attributes on filesystem objects
  2. # URL: http://savannah.nongnu.org/projects/attr
  3. # Maintainers: Andreas Gruenbacher <agruen>, Brandon Philips <philips>
  4. # Packagers: milisarge@gmail.com
  5. name=attr
  6. version=2.4.47
  7. release=1
  8. source=(http://download.savannah.gnu.org/releases/$name/$name-$version.src.tar.gz)
  9. build() {
  10. cd attr-$version
  11. sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in
  12. INSTALL_USER=root \
  13. INSTALL_GROUP=root \
  14. ./configure --prefix=/usr \
  15. --bindir=/bin
  16. make
  17. make DIST_ROOT=$PKG install install-lib install-dev
  18. chmod -v 755 $PKG/usr/lib/libattr.so
  19. mkdir $PKG/lib
  20. mv -v $PKG/usr/lib/libattr.so.* $PKG/lib
  21. ln -sfv ../../lib/libattr.so.1 $PKG/usr/lib/libattr.so
  22. rm -r $PKG/usr/share/man/man2
  23. rm -r $PKG/usr/share/doc
  24. }