[arch-commits] Commit in mac/trunk (PKGBUILD)

2020-05-26 Thread Jakob Gruber via arch-commits
Date: Tuesday, May 26, 2020 @ 14:36:02
  Author: schuay
Revision: 635103

upgpkg: mac 5.38-1: 5.38

Modified:
  mac/trunk/PKGBUILD

--+
 PKGBUILD |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-26 14:29:41 UTC (rev 635102)
+++ PKGBUILD2020-05-26 14:36:02 UTC (rev 635103)
@@ -3,7 +3,8 @@
 # Contributor: Chocobo1 
 
 pkgname=mac
-pkgver=4.71
+pkgver=5.38
+_pkgver=538d
 pkgrel=1
 pkgdesc='APE codec and decompressor'
 arch=('x86_64')
@@ -11,8 +12,8 @@
 license=('custom')
 depends=('gcc-libs')
 makedepends=('curl')
-source=("https://monkeysaudio.com/files/MAC_SDK_${pkgver//.}.zip;)
-sha256sums=('557adc2ec6865bfb0ba6c26d461f4c6172f1d542f71b3cf47f0cef52f99ac664')
+source=("https://monkeysaudio.com/files/MAC_SDK_${_pkgver}.zip;)
+sha256sums=('dab699501f5cc044f8937a369f91aec0a04e8b9f05576e299db4c1b9f8883c0a')
 
 prepare() {
   cd "${srcdir}"


[arch-commits] Commit in mac/trunk (PKGBUILD)

2019-05-13 Thread Jakob Gruber via arch-commits
Date: Monday, May 13, 2019 @ 19:28:23
  Author: schuay
Revision: 467166

upgpkg: mac 4.71-1

4.71-1

Modified:
  mac/trunk/PKGBUILD

--+
 PKGBUILD |   35 ---
 1 file changed, 16 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-05-13 19:15:44 UTC (rev 467165)
+++ PKGBUILD2019-05-13 19:28:23 UTC (rev 467166)
@@ -1,36 +1,33 @@
 # Maintainer: schuay 
 # Contributor: stonecrest 
+# Contributor: Chocobo1 
 
 pkgname=mac
-pkgver='3.99u4b5'
-_pkgver='3.99-u4-b5-s7'
-pkgrel=9
+pkgver=4.71
+pkgrel=1
 pkgdesc='APE codec and decompressor'
 arch=('x86_64')
-url='http://etree.org/shnutils/shntool/'
+url='https://www.monkeysaudio.com/index.html'
 license=('custom')
 depends=('gcc-libs')
-makedepends=('yasm')
-_baseurl='http://etree.org/shnutils/shntool/support/formats/ape/unix'
-source=("${_baseurl}/${_pkgver}/${pkgname}-${_pkgver}.tar.gz" mac-gcc6.patch)
-md5sums=('74df3c96476636387ddd12255b03bebe'
- 'd3e9814f519b523a5dd86f8f86e3a69c')
+makedepends=('curl')
+source=("https://monkeysaudio.com/files/MAC_SDK_${pkgver//.}.zip;)
+sha256sums=('557adc2ec6865bfb0ba6c26d461f4c6172f1d542f71b3cf47f0cef52f99ac664')
 
 prepare() {
-  cd $pkgname-$_pkgver
-  patch -p1 -i ../mac-gcc6.patch # Fix build with GCC 6 (Gentoo)
+  cd "${srcdir}"
+  curl --remote-name "https://www.monkeysaudio.com/license.html;
+  ln -s "${srcdir}/Source/Projects/NonWindows/Makefile" "Makefile"
 }
 
 build() {
-  cd "${srcdir}"/${pkgname}-${_pkgver}
+  cd "${srcdir}"
+  make
+}
 
-  CXXFLAGS="-DSHNTOOL" ./configure --prefix=/usr --enable-assembly=yes 
-  CXXFLAGS="-DSHNTOOL" make
-}
 package() {
-  cd "${srcdir}"/${pkgname}-${_pkgver}
-
-  make DESTDIR="${pkgdir}" install
-  install -Dm644 src/License.htm \
+  cd "${srcdir}"
+  make DESTDIR="${pkgdir}" prefix="/usr" install
+  install -Dm644 license.html \
   "${pkgdir}"/usr/share/licenses/${pkgname}/license.htm
 }


[arch-commits] Commit in mac/trunk (PKGBUILD mac-gcc6.patch)

2018-06-09 Thread Antonio Rojas via arch-commits
Date: Saturday, June 9, 2018 @ 08:05:08
  Author: arojas
Revision: 342134

BUILDINFO rebuild

Added:
  mac/trunk/mac-gcc6.patch
Modified:
  mac/trunk/PKGBUILD

+
 PKGBUILD   |   12 ++-
 mac-gcc6.patch |  190 +++
 2 files changed, 199 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-09 07:50:37 UTC (rev 342133)
+++ PKGBUILD2018-06-09 08:05:08 UTC (rev 342134)
@@ -4,7 +4,7 @@
 pkgname=mac
 pkgver='3.99u4b5'
 _pkgver='3.99-u4-b5-s7'
-pkgrel=8
+pkgrel=9
 pkgdesc='APE codec and decompressor'
 arch=('x86_64')
 url='http://etree.org/shnutils/shntool/'
@@ -12,9 +12,15 @@
 depends=('gcc-libs')
 makedepends=('yasm')
 _baseurl='http://etree.org/shnutils/shntool/support/formats/ape/unix'
-source=("${_baseurl}/${_pkgver}/${pkgname}-${_pkgver}.tar.gz")
-md5sums=('74df3c96476636387ddd12255b03bebe')
+source=("${_baseurl}/${_pkgver}/${pkgname}-${_pkgver}.tar.gz" mac-gcc6.patch)
+md5sums=('74df3c96476636387ddd12255b03bebe'
+ 'd3e9814f519b523a5dd86f8f86e3a69c')
 
+prepare() {
+  cd $pkgname-$_pkgver
+  patch -p1 -i ../mac-gcc6.patch # Fix build with GCC 6 (Gentoo)
+}
+
 build() {
   cd "${srcdir}"/${pkgname}-${_pkgver}
 

Added: mac-gcc6.patch
===
--- mac-gcc6.patch  (rev 0)
+++ mac-gcc6.patch  2018-06-09 08:05:08 UTC (rev 342134)
@@ -0,0 +1,190 @@
+diff -Naur monkeys-audio-4.11-u4-b5-s7_old/src/MACLib/APECompress.cpp 
monkeys-audio-4.11-u4-b5-s7/src/MACLib/APECompress.cpp
+--- monkeys-audio-4.11-u4-b5-s7_old/src/MACLib/APECompress.cpp 2017-03-04 
17:07:21.952460418 +0100
 monkeys-audio-4.11-u4-b5-s7/src/MACLib/APECompress.cpp 2017-03-04 
17:11:58.607449387 +0100
+@@ -117,7 +117,7 @@
+ return ERROR_UNDEFINED;
+ 
+ // calculate how many bytes to copy and add that much to the buffer
+-int nBytesToProcess = min(nBytesAvailable, nBytes - nBytesDone);
++int nBytesToProcess = min_macro(nBytesAvailable, nBytes - nBytesDone);
+ memcpy(pBuffer, [nBytesDone], nBytesToProcess);
+ 
+ // unlock the buffer (fail if not successful)
+@@ -162,7 +162,7 @@
+ 
+ while ((m_nBufferTail - m_nBufferHead) >= nThreshold)
+ {
+-int nFrameBytes = min(m_spAPECompressCreate->GetFullFrameBytes(), 
m_nBufferTail - m_nBufferHead);
++int nFrameBytes = 
min_macro(m_spAPECompressCreate->GetFullFrameBytes(), m_nBufferTail - 
m_nBufferHead);
+ 
+ if (nFrameBytes == 0)
+ break;
+diff -Naur monkeys-audio-4.11-u4-b5-s7_old/src/MACLib/APEDecompress.cpp 
monkeys-audio-4.11-u4-b5-s7/src/MACLib/APEDecompress.cpp
+--- monkeys-audio-4.11-u4-b5-s7_old/src/MACLib/APEDecompress.cpp   
2017-03-04 17:07:21.952460418 +0100
 monkeys-audio-4.11-u4-b5-s7/src/MACLib/APEDecompress.cpp   2017-03-04 
17:14:55.455442336 +0100
+@@ -35,8 +35,8 @@
+ m_bErrorDecodingCurrentFrame = FALSE;
+ 
+ // set the "real" start and finish blocks
+-m_nStartBlock = (nStartBlock < 0) ? 0 : min(nStartBlock, 
GetInfo(APE_INFO_TOTAL_BLOCKS));
+-m_nFinishBlock = (nFinishBlock < 0) ? GetInfo(APE_INFO_TOTAL_BLOCKS) : 
min(nFinishBlock, GetInfo(APE_INFO_TOTAL_BLOCKS));
++m_nStartBlock = (nStartBlock < 0) ? 0 : min_macro(nStartBlock, 
GetInfo(APE_INFO_TOTAL_BLOCKS));
++m_nFinishBlock = (nFinishBlock < 0) ? GetInfo(APE_INFO_TOTAL_BLOCKS) : 
min_macro(nFinishBlock, GetInfo(APE_INFO_TOTAL_BLOCKS));
+ m_bIsRanged = (m_nStartBlock != 0) || (m_nFinishBlock != 
GetInfo(APE_INFO_TOTAL_BLOCKS));
+ }
+ 
+@@ -85,7 +85,7 @@
+ 
+ // cap
+ int nBlocksUntilFinish = m_nFinishBlock - m_nCurrentBlock;
+-const int nBlocksToRetrieve = min(nBlocks, nBlocksUntilFinish);
++const int nBlocksToRetrieve = min_macro(nBlocks, nBlocksUntilFinish);
+ 
+ // get the data
+ unsigned char * pOutputBuffer = (unsigned char *) pBuffer;
+@@ -99,7 +99,7 @@
+ 
+ // analyze how much to remove from the buffer
+ const int nFrameBufferBlocks = m_nFrameBufferFinishedBlocks;
+-nBlocksThisPass = min(nBlocksLeft, nFrameBufferBlocks);
++nBlocksThisPass = min_macro(nBlocksLeft, nFrameBufferBlocks);
+ 
+ // remove as much as possible
+ if (nBlocksThisPass > 0)
+@@ -182,7 +182,7 @@
+ 
+ int nFrameOffsetBlocks = m_nCurrentFrameBufferBlock % 
GetInfo(APE_INFO_BLOCKS_PER_FRAME);
+ int nFrameBlocksLeft = nFrameBlocks - nFrameOffsetBlocks;
+-int nBlocksThisPass = min(nFrameBlocksLeft, nBlocksLeft);
++int nBlocksThisPass = min_macro(nFrameBlocksLeft, nBlocksLeft);
+ 
+ // start the frame if we need to
+ if (nFrameOffsetBlocks == 0)
+diff -Naur monkeys-audio-4.11-u4-b5-s7_old/src/MACLib/APESimple.cpp 
monkeys-audio-4.11-u4-b5-s7/src/MACLib/APESimple.cpp
+--- 

[arch-commits] Commit in mac/trunk (PKGBUILD)

2015-12-05 Thread Evangelos Foutras
Date: Saturday, December 5, 2015 @ 16:19:51
  Author: foutrelis
Revision: 148459

C++11 ABI rebuild

Modified:
  mac/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-12-05 15:19:29 UTC (rev 148458)
+++ PKGBUILD2015-12-05 15:19:51 UTC (rev 148459)
@@ -4,7 +4,7 @@
 pkgname=mac
 pkgver='3.99u4b5'
 _pkgver='3.99-u4-b5-s7'
-pkgrel=7
+pkgrel=8
 pkgdesc='APE codec and decompressor'
 arch=('i686' 'x86_64')
 url='http://etree.org/shnutils/shntool/'


[arch-commits] Commit in mac/trunk (PKGBUILD)

2015-07-09 Thread Jakob Gruber
Date: Thursday, July 9, 2015 @ 18:49:41
  Author: schuay
Revision: 136595

mac-3.99u4b5-7

Modified:
  mac/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-07-09 16:20:17 UTC (rev 136594)
+++ PKGBUILD2015-07-09 16:49:41 UTC (rev 136595)
@@ -4,7 +4,7 @@
 pkgname=mac
 pkgver='3.99u4b5'
 _pkgver='3.99-u4-b5-s7'
-pkgrel=6
+pkgrel=7
 pkgdesc='APE codec and decompressor'
 arch=('i686' 'x86_64')
 url='http://etree.org/shnutils/shntool/'
@@ -18,8 +18,8 @@
 build() {
   cd ${srcdir}/${pkgname}-${_pkgver}
 
-  ./configure --prefix=/usr --enable-assembly=yes 
-  make
+  CXXFLAGS=-DSHNTOOL ./configure --prefix=/usr --enable-assembly=yes 
+  CXXFLAGS=-DSHNTOOL make
 }
 package() {
   cd ${srcdir}/${pkgname}-${_pkgver}


[arch-commits] Commit in mac/trunk (PKGBUILD)

2013-10-25 Thread Jakob Gruber
Date: Friday, October 25, 2013 @ 12:34:34
  Author: schuay
Revision: 99182

mac-3.99u4b5-6

Modified:
  mac/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-25 10:33:17 UTC (rev 99181)
+++ PKGBUILD2013-10-25 10:34:34 UTC (rev 99182)
@@ -4,7 +4,7 @@
 pkgname=mac
 pkgver='3.99u4b5'
 _pkgver='3.99-u4-b5-s7'
-pkgrel=5
+pkgrel=6
 pkgdesc='APE codec and decompressor'
 arch=('i686' 'x86_64')
 url='http://etree.org/shnutils/shntool/'