# Maintainer: Dakeryas pkgname=mac-optimised pkgver=8.69 pkgrel=3 pkgdesc="Monkey's Audio library and command line APE converter with optimised build flags (from SDK)" arch=('i686' 'x86_64') url="https://monkeysaudio.com/developers.html" license=("Monkey's Audio License Agreement") provides=('mac') conflicts=('mac') makedepends=('gcc' 'make') source=("https://monkeysaudio.com/files/MAC_${pkgver//.}_SDK.zip") sha256sums=('4d9bc4bc46d43fb85f5261ac11e52fdf300cb975a185a13b1a04608a5ca879db') _project_path() { echo "$srcdir/Source/Projects/NonWindows" } build() { cd $(_project_path) export prefix=/usr export CXXFLAGS="${CXXFLAGS} -O3 -march=native" export LDFLAGS="${LDFLAGS} -Wl,-rpath,\\$\$ORIGIN/../lib" make } package() { cd $(_project_path) make DESTDIR="$pkgdir/" install }