Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

aseprite-git PKGBUILD

By: a guest on Jul 15th, 2012  |  syntax: Bash  |  size: 1.02 KB  |  hits: 27  |  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. pkgname=asesprite-git
  2. pkgver=20120715
  3. pkgrel=1
  4. pkgdesc="Allegro Sprite Editor is an open source program to create animated sprites and pixel art"
  5. arch=(i686 x86_64)
  6. url="http://www.aseprite.org"
  7. license=('GPL')
  8. groups=()
  9. depends=('allegro')
  10. makedepends=('git' 'cmake')
  11. conflicts=(aseprite)
  12. source=()
  13. noextract=()
  14. md5sums=() #generate with 'makepkg -g'
  15.  
  16. _gitroot=git://github.com/dacap/aseprite.git
  17. _gitname=aseprite
  18.  
  19. build() {
  20.   cd "$srcdir"
  21.   msg "Connecting to GIT server...."
  22.  
  23.   if [[ -d "$_gitname" ]]; then
  24.     cd "$_gitname" && git pull origin
  25.     msg "The local files are updated."
  26.   else
  27.     git clone "$_gitroot" "$_gitname"
  28.   fi
  29.  
  30.   msg "GIT checkout done or server timeout"
  31.   msg "Starting build..."
  32.  
  33.   rm -rf "$srcdir/$_gitname-build"
  34.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  35.   cd "$srcdir/$_gitname-build"
  36.  
  37.   #
  38.   # BUILD HERE
  39.   #
  40.   cmake --prefix=/usr .
  41.   make
  42. }
  43.  
  44. package() {
  45.   cd "$srcdir/$_gitname-build"
  46.   make DESTDIR="$pkgdir/" install
  47. }
  48.  
  49. # vim:set ts=2 sw=2 et: