Date: Friday, April 21, 2023 @ 06:20:49
  Author: arojas
Revision: 1448095

archrelease: copy trunk to community-x86_64

Added:
  alure/repos/community-x86_64/PKGBUILD
    (from rev 1448094, alure/trunk/PKGBUILD)
  alure/repos/community-x86_64/build.patch
    (from rev 1448094, alure/trunk/build.patch)
  alure/repos/community-x86_64/dumb-2.patch
    (from rev 1448094, alure/trunk/dumb-2.patch)
Deleted:
  alure/repos/community-x86_64/PKGBUILD
  alure/repos/community-x86_64/build.patch
  alure/repos/community-x86_64/dumb-2.patch

--------------+
 PKGBUILD     |   90 +++++++++++++++++++++++++--------------------------------
 build.patch  |   24 +++++++--------
 dumb-2.patch |   60 +++++++++++++++++++-------------------
 3 files changed, 82 insertions(+), 92 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-21 06:20:34 UTC (rev 1448094)
+++ PKGBUILD    2023-04-21 06:20:49 UTC (rev 1448095)
@@ -1,50 +0,0 @@
-# Maintainer: Lukas Fleischer <[email protected]>
-# Contributor: Markus Martin <[email protected]>
-
-pkgname=alure
-pkgver=1.2
-pkgrel=9
-pkgdesc='Utility library to help manage common tasks with OpenAL applications.'
-arch=('x86_64')
-url='https://kcat.tomasu.net/alure.html'
-license=('MIT')
-depends=('openal')
-makedepends=('cmake' 'libsndfile' 'libvorbis' 'flac' 'mpg123' 'dumb' 
'fluidsynth')
-optdepends=('libsndfile: for uncompressed audio support'
-            'libvorbis: for OGG Vorbis support'
-            'flac: for FLAC support'
-            'mpg123: for MPEG support'
-            'dumb: for IT, XM, S3M and MOD support'
-            'fluidsynth: for SoundFont 2 support')
-source=("https://kcat.tomasu.net/alure-releases/${pkgname}-${pkgver}.tar.bz2";
-        build.patch
-        dumb-2.patch)
-md5sums=('3088aba074ad02d95ea51e705053b9f5'
-         '6a8dfd62ccae920d393b4202736aba46'
-         'f6569e1fee4015a9e0a68df37798c8aa')
-sha256sums=('465e6adae68927be3a023903764662d64404e40c4c152d160e3a8838b1d70f71'
-            '21029cfc8900b8270f6c7a79235e09a05d45d0b03b221d9d856a27e98cc0931b'
-            '379210476980d5e2754b015d5505dff620ed3297a99c08509c757fa88ef46300')
-
-prepare() {
-  cd $pkgname-$pkgver
-  patch -p1 -i ../build.patch
-  patch -p1 -i ../dumb-2.patch # Fix build with dumb 2 (Gentoo)
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-
-  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS="$CXXFLAGS 
-ffat-lto-objects"
-# Fix build with fluidsynth 2.4
-  find -name build.make | xargs sed -e 's|\;| |g' -i
-  make
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
-
-  install -Dm0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
-}

Copied: alure/repos/community-x86_64/PKGBUILD (from rev 1448094, 
alure/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-21 06:20:49 UTC (rev 1448095)
@@ -0,0 +1,40 @@
+# Maintainer: Lukas Fleischer <[email protected]>
+# Contributor: Markus Martin <[email protected]>
+
+pkgname=alure
+pkgver=1.2
+pkgrel=10
+pkgdesc='Utility library to help manage common tasks with OpenAL applications.'
+arch=('x86_64')
+url='https://kcat.tomasu.net/alure.html'
+license=('MIT')
+depends=('openal' 'libsndfile' 'libvorbis' 'flac' 'mpg123' 'dumb' 'fluidsynth')
+makedepends=('cmake')
+source=("https://kcat.tomasu.net/alure-releases/${pkgname}-${pkgver}.tar.bz2";
+        build.patch
+        dumb-2.patch)
+sha256sums=('465e6adae68927be3a023903764662d64404e40c4c152d160e3a8838b1d70f71'
+            '21029cfc8900b8270f6c7a79235e09a05d45d0b03b221d9d856a27e98cc0931b'
+            '379210476980d5e2754b015d5505dff620ed3297a99c08509c757fa88ef46300')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../build.patch
+  patch -p1 -i ../dumb-2.patch # Fix build with dumb 2 (Gentoo)
+}
+
+build() {
+  cmake -B build -S $pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects" \
+    -DDYNLOAD=OFF
+# Fix build with fluidsynth 2.4
+  find -name build.make | xargs sed -e 's|\;| |g' -i
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+
+  install -Dm0644 $pkgname-$pkgver/COPYING -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Deleted: build.patch
===================================================================
--- build.patch 2023-04-21 06:20:34 UTC (rev 1448094)
+++ build.patch 2023-04-21 06:20:49 UTC (rev 1448095)
@@ -1,12 +0,0 @@
-diff -rupN a/src/codec_fluidsynth.cpp b/src/codec_fluidsynth.cpp
---- a/src/codec_fluidsynth.cpp 2011-07-29 08:37:48.000000000 +0000
-+++ b/src/codec_fluidsynth.cpp 2014-01-03 10:42:13.280792235 +0000
-@@ -32,7 +32,7 @@
- #endif
- 
- #include <istream>
--
-+#include <unistd.h>
- #include <fluidsynth.h>
- 
- 

Copied: alure/repos/community-x86_64/build.patch (from rev 1448094, 
alure/trunk/build.patch)
===================================================================
--- build.patch                         (rev 0)
+++ build.patch 2023-04-21 06:20:49 UTC (rev 1448095)
@@ -0,0 +1,12 @@
+diff -rupN a/src/codec_fluidsynth.cpp b/src/codec_fluidsynth.cpp
+--- a/src/codec_fluidsynth.cpp 2011-07-29 08:37:48.000000000 +0000
++++ b/src/codec_fluidsynth.cpp 2014-01-03 10:42:13.280792235 +0000
+@@ -32,7 +32,7 @@
+ #endif
+ 
+ #include <istream>
+-
++#include <unistd.h>
+ #include <fluidsynth.h>
+ 
+ 

Deleted: dumb-2.patch
===================================================================
--- dumb-2.patch        2023-04-21 06:20:34 UTC (rev 1448094)
+++ dumb-2.patch        2023-04-21 06:20:49 UTC (rev 1448095)
@@ -1,30 +0,0 @@
-# Already fixed upstream:
-# 
https://repo.or.cz/alure.git/commitdiff/9939cdfbf9c6c7a2690db7fb8dd2892389adcd5f
-
-diff -Naur a/src/codec_dumb.cpp b/src/codec_dumb.cpp
---- a/src/codec_dumb.cpp       2011-07-29 09:37:48.000000000 +0100
-+++ b/src/codec_dumb.cpp       2020-05-10 15:59:48.502632496 +0100
-@@ -272,7 +272,11 @@
- 
- private:
-     // DUMBFILE iostream callbacks
-+#if DUMB_VERSION >= 2*10000
-+    static int skip(void *user_data, dumb_off_t offset)
-+#else
-     static int skip(void *user_data, long offset)
-+#endif
-     {
-         std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
-         stream->clear();
-@@ -282,7 +286,11 @@
-         return -1;
-     }
- 
-+#if DUMB_VERSION >= 2*10000
-+    static dumb_ssize_t read(char *ptr, size_t size, void *user_data)
-+#else
-     static long read(char *ptr, long size, void *user_data)
-+#endif
-     {
-         std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
-         stream->clear();

Copied: alure/repos/community-x86_64/dumb-2.patch (from rev 1448094, 
alure/trunk/dumb-2.patch)
===================================================================
--- dumb-2.patch                                (rev 0)
+++ dumb-2.patch        2023-04-21 06:20:49 UTC (rev 1448095)
@@ -0,0 +1,30 @@
+# Already fixed upstream:
+# 
https://repo.or.cz/alure.git/commitdiff/9939cdfbf9c6c7a2690db7fb8dd2892389adcd5f
+
+diff -Naur a/src/codec_dumb.cpp b/src/codec_dumb.cpp
+--- a/src/codec_dumb.cpp       2011-07-29 09:37:48.000000000 +0100
++++ b/src/codec_dumb.cpp       2020-05-10 15:59:48.502632496 +0100
+@@ -272,7 +272,11 @@
+ 
+ private:
+     // DUMBFILE iostream callbacks
++#if DUMB_VERSION >= 2*10000
++    static int skip(void *user_data, dumb_off_t offset)
++#else
+     static int skip(void *user_data, long offset)
++#endif
+     {
+         std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
+         stream->clear();
+@@ -282,7 +286,11 @@
+         return -1;
+     }
+ 
++#if DUMB_VERSION >= 2*10000
++    static dumb_ssize_t read(char *ptr, size_t size, void *user_data)
++#else
+     static long read(char *ptr, long size, void *user_data)
++#endif
+     {
+         std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
+         stream->clear();

Reply via email to