Advertisement
Guest User

wineasio pkgbuild

a guest
Oct 11th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.09 KB | None | 0 0
  1. # Maintainer: Ray Rashif <schiv@archlinux.org>
  2. # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
  3.  
  4. pkgname=wineasio
  5. _lib=lib
  6. _dll=wineasio.dll.so
  7. pkgver=0.9.0
  8. pkgrel=1
  9. pkgdesc="Steinberg ASIO driver implementation for Wine"
  10. arch=('i686' 'x86_64')
  11. url="http://sourceforge.net/projects/wineasio/"
  12. license=('LGPL')
  13. depends=('wine' 'jack')
  14. makedepends=('steinberg-asio')
  15.  
  16. if [ "$CARCH" = 'x86_64' ]; then
  17.   _lib=lib32
  18.   depends=('wine' 'lib32-jack')
  19.   makedepends+=('multilib-devel' 'gcc-libs-multilib')
  20.   provides=('lib32-wineasio' 'wineasio64')
  21.   replaces=('lib32-wineasio' 'wineasio64')
  22.   conflicts=('lib32-wineasio' 'wineasio64')
  23. fi
  24.  
  25. install=$pkgname.install
  26. source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
  27. md5sums=('5090cf27699a0b5aecb72fd06aaf6d01')
  28.  
  29. build() {
  30.    
  31.   cd "$srcdir/$pkgname"
  32.   ln -s /usr/include/steinberg-asio/asio.h
  33.  
  34.   #fix for build errors with wine 1.7.3+
  35.   sed -i s/CONST/const/ regsvr.c
  36.  
  37.   make
  38. }
  39.  
  40. package() {
  41.   cd "$srcdir/$pkgname"
  42.  
  43.   install -Dm755 $_dll "$pkgdir/usr/$_lib/wine/$_dll"
  44. }
  45.  
  46. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement