# Author: Joakim Hernberg # Contributor: Ray Rashif # Contributor: Shinlun Hsieh # Maintainer: redtide pkgname=wineasio pkgver=0.9.2 pkgrel=7 pkgdesc="ASIO driver implementation for Wine" url="http://sourceforge.net/projects/wineasio/" arch=('i686' 'x86_64') license=('LGPL') depends=('wine' 'jack') depends_x86_64+=('lib32-jack') makedepends=('steinberg-asio') makedepends_x86_64+=('gcc-multilib') install="$pkgname".install source=( "http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" "wineasio-fix-prep64bit.patch::https://github.com/jhernberg/wineasio/pull/1.patch" "wineasio-fix-unicode-h.patch::https://github.com/jhernberg/wineasio/pull/10.patch" ) sha256sums=( '9fbc2d10a4cec307dc0558bed82b887c864424d16da40a80f1d80f907d92af0b' '2789faed51992c6f6c1703cef8af3efdf26a3352bcef4b566de1979e69ab4b02' '3b9081fc015724ab0661269ed66832a3b019b21f5f2ebbadae304aa9c63a39a4' ) prepare() { cd "$pkgname" cp /usr/include/steinberg-asio/asio.h asio.h patch --forward --strip=1 --input="${srcdir}/wineasio-fix-unicode-h.patch" if [[ "$CARCH" == x86_64 ]]; then cp asio.h asio.h.i686 patch --forward --strip=1 --input="${srcdir}/wineasio-fix-prep64bit.patch" ./prepare_64bit_asio fi } build() { cd "$pkgname" if [[ "$CARCH" == x86_64 ]]; then make -f Makefile64 mv "$pkgname".dll.so "$pkgname".dll.so.x86_64 cp asio.h.i686 asio.h make clean make else make fi } package() { cd "$pkgname" if [[ "$CARCH" == x86_64 ]]; then install -D -m755 "$pkgname".dll.so.x86_64 "$pkgdir"/usr/lib/wine/"$pkgname".dll.so install -D -m755 "$pkgname".dll.so "$pkgdir"/usr/lib32/wine/"$pkgname".dll.so else install -D -m755 "$pkgname".dll.so "$pkgdir"/usr/lib/wine/"$pkgname".dll.so fi install -D -m644 README "$pkgdir"/usr/share/"$pkgname"/README } # vim:set ts=2 sw=2 et: