summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85668ae673406d24737a1acd54691cd284b57d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Author:      Joakim Hernberg <jhernberg@alchemy.lu>
# Contributor: Ray Rashif <schiv@archlinux.org>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
# Contributor:  redtide <redtid3@gmail.com>
# Maintainer:  chuckdaniels <ismgonval@gmail.com>

pkgname=wineasio
pkgver=1.0.0
pkgrel=1

pkgdesc="ASIO driver implementation for Wine"
url="https://github.com/wineasio/wineasio"
arch=('i686' 'x86_64')
license=('LGPL')

depends=('wine' 'jack' 'realtime-privileges')
depends_x86_64+=('lib32-jack')
makedepends_x86_64+=('gcc-multilib')

install="$pkgname".install

source=(
  "https://github.com/wineasio/wineasio/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
)
sha256sums=(
  'b550d34e6c5ba3c2accffda96fa5624b725680d862227254372d1349a0b5587f'
)
build() {
  cd "$pkgname-$pkgver"
  make 32
  if [[ "$CARCH" == x86_64 ]]; then
    make 64
  fi
}
package() {
  cd "$pkgname-$pkgver"
  if [[ "$CARCH" == x86_64 ]]; then
    install -D -m755 build32/"$pkgname".dll.so "$pkgdir"/usr/lib32/wine/"$pkgname".dll.so
    install -D -m755 build64/"$pkgname".dll.so "$pkgdir"/usr/lib/wine/"$pkgname".dll.so
  else
    install -D -m755 build32/"$pkgname".dll.so "$pkgdir"/usr/lib32/wine/"$pkgname".dll.so
  fi
  install -D -m644 README.md "$pkgdir"/usr/share/"$pkgname"/README.md
}
# vim:set ts=2 sw=2 et: