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

lib32-ois

By: a guest on Jun 7th, 2011  |  syntax: Bash  |  size: 0.97 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. _pkgbasename=ois
  2. pkgname=lib32-$_pkgbasename
  3. pkgver=1.3
  4. _oisver=${pkgver/./-}
  5. pkgrel=1
  6. pkgdesc="Object Oriented Input System (32 bit)"
  7. arch=('x86_64')
  8. url="http://sourceforge.net/projects/wgois"
  9. license=('custom:zlib/libpng')
  10. depends=('lib32-libx11' 'lib32-gcc-libs' "$_pkgbasename")
  11. makedepends=('lib32-libtool' 'gcc-multilib' 'lib32-libxaw')
  12. options=('!libtool')
  13. source=("http://downloads.sourceforge.net/project/wgois/Source%20Release/${pkgver}/ois_v${pkgver/./-}.tar.gz"
  14.         'LICENSE')
  15. md5sums=('9697fead17eac6025151cd2e1fca1518'
  16.          '75b0001e6a120eae0ed07161a2459d4b')
  17.  
  18. build() {
  19.   cd ${srcdir}/${_pkgbasename}-v${pkgver/./-}
  20.   chmod +x bootstrap
  21.   ./bootstrap
  22.   ./configure --prefix=/usr --libdir=/usr/lib32 CC='gcc -m32' CXX='g++ -m32'
  23.   make
  24. }
  25.  
  26. package() {
  27.   cd ${srcdir}/${_pkgbasename}-v${pkgver/./-}
  28.   make DESTDIR=${pkgdir} install
  29.   rm -rf ${pkgdir}/usr/include
  30.   install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
  31. }
clone this paste RAW Paste Data