|
发表于 2008-6-15 18:44:13
|
显示全部楼层
- pkgname=yaourt
- pkgver=20080615
- pkgrel=2
- pkgdesc="A Pacman frontend with more features like AUR support"
- url="http://www.archlinux.fr/yaourt-en/"
- license="GPL"
- arch=('i686' 'x86_64')
- depends=('wget' 'diffutils' 'pacman>=3.0.0')
- conflicts=('bash-completion-yaourt')
- replaces=('bash-completion-yaourt')
- install=yaourt.install
- backup=('etc/yaourtrc')
- source=()
- md5sums=()
- _gitroot="http://projects.archlinux.fr/yaourt.git"
- _gitname="yaourt"
- build() {
- cd ${startdir}/src
- msg "Connecting to GIT server...."
- if [ -d ${startdir}/src/${_gitname} ] ; then
- cd ${_gitname} && git-pull origin
- msg "The local files are updated."
- else
- git clone $_gitroot
- fi
- msg "GIT checkout done or server timeout"
- msg "Starting make..."
- cp -r ${startdir}/src/${_gitname} ${startdir}/src/${_gitname}-build
- cd ${startdir}/src/${_gitname}-build/src
- make install DESTDIR=${pkgdir} || return 1
- rm -rf ${startdir}/src/${_gitname}-build
- }
复制代码
yaourt.install还是原来的 |
|