Want more features on Pastebin? Sign Up, it's FREE!
Guest

Updated xss-git PKGBUILD

By: a guest on Jul 11th, 2010  |  syntax: Bash  |  size: 1.18 KB  |  views: 84  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
  2. pkgname=xss-git
  3. pkgver=20100711
  4. pkgrel=1
  5. pkgdesc="A collection of small programs to compose your own screensaver or screenlocker."
  6. arch=('i686' 'x86_64')
  7. url="http://woozle.org/~neale/src/xss"
  8. license=('GPL')
  9. depends=()
  10. makedepends=('git')
  11. groups=()
  12. conflicts=('xss')
  13. provides=('xss')
  14. source=()
  15. md5sums=()
  16.  
  17. _gitroot="http://woozle.org/~neale/projects/xss"
  18. _gitname="xss"
  19.  
  20. build() {
  21.   msg "Connecting to xss GIT server...."
  22.  
  23.   if [ -d $startdir/src/$_gitname ] ; then
  24.     cd $_gitname && git pull origin
  25.     msg "The local files are updated."
  26.   else
  27.     git clone $_gitroot
  28.   fi
  29.  
  30.   msg "GIT checkout done or server timeout"
  31.   msg "Starting make..."
  32.  
  33.   if [ -d $startdir/src/$_gitname ]; then
  34.     rm -r $startdir/src/$_gitname-build || true
  35.   fi
  36.   cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
  37.   cd $startdir/src/$_gitname-build
  38.  
  39.   make || return 1
  40.   for file in `find . -type f -perm /111`; do
  41.     install -m755 -D $file $startdir/pkg/usr/bin/$file
  42.   done
  43.  
  44.   install -m644 -D README $startdir/pkg/usr/share/doc/$pkgname/README
  45.   install -m644 -D COPYING $startdir/pkg/usr/share/doc/$pkgname/COPYING
  46. }
clone this paste RAW Paste Data