diff options
author | HLFH | 2023-05-16 15:19:24 +0100 |
---|---|---|
committer | HLFH | 2023-05-16 15:19:24 +0100 |
commit | edba99c8d9abc8394eb683a12e7d1d7adbb04423 (patch) | |
tree | d7f2328ab979f1b5ab0f60852aea985b1f3a13a8 | |
parent | 642e54ab36bd2e305c21cddbfec9b1b76ad04930 (diff) | |
download | aur-edba99c8d9abc8394eb683a12e7d1d7adbb04423.tar.gz |
Monkey's Audio updated to 10.11
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 54 |
2 files changed, 38 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..13f5d635521e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +src/ +pkg/ +*.zip +*.zst +*license.html @@ -1,30 +1,42 @@ -# Maintainer: Dakeryas <mrdakeryas at gmail dot com> +# Maintainer: HLFH <gaspard@dhautefeuille.eu> pkgname=mac-optimised -pkgver=9.04 -pkgrel=6 -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") +pkgver=10.11 +_pkgver="${pkgver//./}" +pkgrel=1 +pkgdesc="APE codec and decompressor with optimised build flags" +arch=('x86_64') +url="https://monkeysaudio.com/" +license=("custom: Monkey's Audio License Agreement") provides=('mac') conflicts=('mac') -makedepends=('gcc' 'make') -source=('https://monkeysaudio.com/files/MAC_904_SDK.zip') -sha256sums=('09cfebe79986a9b8249cff9c3fd79663692e8e23139903df541905a2ecf44c6a') - -_project_path() { - echo "$srcdir/Source/Projects/NonWindows" -} +makedepends=('glibc' 'gcc-libs') +source=( + "$pkgname-$pkgver.zip::https://monkeysaudio.com/files/MAC_${_pkgver}_SDK.zip" + "$pkgname-$pkgver-license.html::https://www.monkeysaudio.com/license.html" +) +b2sums=('404b27063e4fa831c835923bd31d5db3fb4f0ed912eb2c4799d17fd880a9313f4e871f67200b5b96bc0614d2ce25c1ac3618500483403b0cd5f38a7971c11a12' + '6f8ab6ca6e7b367a901c083c2390c1fd175cc0aee9b86b6280a7883797525172ad5f6e3b4293ca288009adc550cd1646a54b74bdbaae40759fa3be551d16de50') build() { - cd $(_project_path) - export prefix=/usr - export CXXFLAGS="${CXXFLAGS} -O3 -march=native" - export LDFLAGS="${LDFLAGS} -Wl,-rpath,\\$\$ORIGIN/../lib" - make + export CXXFLAGS="${CXXFLAGS} -O3 -march=native" + export LDFLAGS="${LDFLAGS} -Wl,-rpath,\\$\$ORIGIN/../lib" + + cmake \ + -S . \ + -B build \ + -D CMAKE_BUILD_TYPE='None' \ + -D CMAKE_INSTALL_PREFIX='/usr' + + cmake --build build + + # generate license + html2text --ignore-links "$pkgname-$pkgver-license.html" \ + | sed -n '/^## License$/,$p' \ + > LICENSE.md } package() { - cd $(_project_path) - make DESTDIR="$pkgdir/" install + DESTDIR="$pkgdir" cmake --install build + + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md } |