Working wineasio-git PKGBUILD for current version (6.9)
basename=wineasio
pkgname=$basename-git
pkgver=r99
pkgrel=1
pkgdesc="ASIO driver implementation for Wine"
url="https://github.com/wineasio/wineasio"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('wine' 'jack')
depends_x86_64+=('lib32-jack')
makedepends_x86_64=('gcc-multilib')
provides=('wineasio')
conflicts=('wineasio')
install="$pkgname".install
source=(
"git+https://github.com/wineasio/wineasio"
"git+https://github.com/falkTX/rtaudio"
)
sha256sums=(
'SKIP'
'SKIP'
)
pkgver() {
cd "$srcdir/$basename"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$basename"
git submodule init
git config submodule.rtaudio.url $srcdir/rtaudio
git submodule update
}
build() {
cd "$basename"
make clean
if [[ "$CARCH" == x86_64 ]]; then
make 64
cd build64
winebuild -m64 --dll --fake-module -E ../wineasio.dll.spec asio.c.o main.c.o regsvr.c.o > wineasio.dll
cd ..
fi
make 32
cd build32
winebuild -m32 --dll --fake-module -E ../wineasio.dll.spec asio.c.o main.c.o regsvr.c.o > wineasio.dll
}
package() {
cd "$basename"
if [[ "$CARCH" == x86_64 ]]; then
install -D -m755 build64/wineasio.dll "$pkgdir"/usr/lib/wine/x86_64-windows/wineasio.dll
install -D -m755 build64/wineasio.dll.so "$pkgdir"/usr/lib/wine/x86_64-unix/wineasio.dll.so
fi
install -D -m755 build32/wineasio.dll "$pkgdir"/usr/lib32/wine/i386-windows/wineasio.dll
install -D -m755 build32/wineasio.dll.so "$pkgdir"/usr/lib32/wine/i386-unix/wineasio.dll.so
}
Pinned Comments
PedroHLC commented on 2021-07-07 19:11 (UTC)
I've added a GitHub repo for this package here: pkgbuild-wineasio-git. PRs and Issues are welcomed. Once PRs have merged, the commits roll back to AUR through a GH Action, keeping your authorship.