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

Untitled

By: a guest on Mar 14th, 2011  |  syntax: Bash  |  size: 1.11 KB  |  views: 309  |  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. # Maintainer: Jose Valecillos <valecillosjg (at) gmail (dot) com>
  2.  
  3. pkgname=xampp
  4. pkgver=1.7.4
  5. pkgrel=1
  6. pkgdesc="XAMPP is a free and open source cross-platform web server package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages"
  7. url="http://www.apachefriends.org"
  8. license=('GPL')
  9. arch=('i686' 'x86_64')
  10. [ "$CARCH" = "x86_64" ] && depends=('lib32-glibc' 'gcc-libs-multilib')
  11. source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-linux-${pkgver}.tar.gz)
  12. install=${pkgname}.install
  13. noextract=(${pkgname}-linux-${pkgver}.tar.gz)
  14. options=(!strip)
  15. md5sums=('7d83c9829d8c79d43ea607e5b009dc58')
  16.  
  17. build() {
  18.   mkdir ${pkgdir}/opt
  19.   mkdir -p ${pkgdir}/usr/bin
  20.   mkdir -p ${pkgdir}/usr/share/licenses/xampp
  21.    
  22.   cd $srcdir
  23.   tar xvfz ${pkgname}-linux-${pkgver}.tar.gz -C ${pkgdir}/opt
  24.   #chmod g-s -R ${pkgdir}/opt/lammp
  25.  
  26.   mv ${pkgdir}/opt/lampp/licenses/* ${pkgdir}/usr/share/licenses/xampp/
  27.   ln -sf /opt/lampp/lampp ${pkgdir}/usr/bin/xampp
  28.   ln -sf /opt/lampp/lampp ${pkgdir}/usr/bin/lampp
  29. }
  30.  
  31. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data