yocto项目中的pseudo PKGBUILD

# Contributor: GunsNRose <zlbgps AT gmail.com>>
_gitname=pseudo
_gitroot='http://git.yoctoproject.org/git/pseudo'
pkgname=pseudo-git
pkgver=20130802
pkgrel=1
pkgdesc="yocot pseudo"
arch=('i686' 'x86_64')
url="http://git.yoctoproject.org/git/pseudo"
license=('GPL')
#depends=('python')
makedepends=('git')
provides=('pseudo')
build() {
  cd "$srcdir"
  if [ ! -d "$srcdir/${_gitname}" ] ; then
      git clone --depth=1 ${_gitroot}
  else
      cd "$srcdir/${_gitname}" || return 1
      git pull
  fi
  if [  -d "$srcdir/${_gitname}-build" ] ; then
      rm -rf "$srcdir/${_gitname}-build"
  fi
  if [ ! -d "$srcdir/${_gitname}-build" ] ; then
      cp -a "$srcdir/${_gitname}" "$srcdir"/${_gitname}-build || return 1
  fi
  cd "$srcdir"/${_gitname}-build
  ./configure --prefix=/usr
  make
}
package() {
  cd "$srcdir"/${_gitname}-build
  make DESTDIR=${pkgdir} install
}

==========================================

sudo groupadd --root $(pwd)/armv5te_rootfs -r abc

groupadd: Cannot determine your user name.

添加pseudo后

sudo pseudo -P /usr groupadd --root $(pwd)/armv5te_rootfs -r abc  提示成功

因为在使用 前面 opkg-svn文章中的opkg_armv5te.sh脚本里,添加pseudo可以成功实现安装功能

你可能感兴趣的:(#archlinux,#oe)