talimat 448 B

12345678910111213141516171819202122
  1. name=pkgutils
  2. version=5.35.6
  3. source=(http://crux.nu/files/$name-$version.tar.gz)
  4. build()
  5. {
  6. cd $name-$version
  7. PKG_CONFIG_PATH=/tools/lib/pkgconfig \
  8. make
  9. install -m755 pkgadd /tools/bin/pkgadd
  10. ln -sv pkgadd /tools/bin/pkginfo
  11. ln -sv pkgadd /tools/bin/pkgrm
  12. sed -e "s/#VERSION#/$VERSION/" pkgmk.in > /tools/bin/pkgmk
  13. chmod 755 /tools/bin/pkgmk
  14. install -m666 pkgmk.conf /tools/etc/pkgmk.conf
  15. mkdir -pv $LFS/var/lib/pkg
  16. touch $LFS/var/lib/pkg/db
  17. }