[arch-commits] Commit in meterbridge/trunk (PKGBUILD c99-inline-fix.patch)

David Runge dvzrv at archlinux.org
Sun Dec 3 23:43:25 UTC 2017


    Date: Sunday, December 3, 2017 @ 23:43:25
  Author: dvzrv
Revision: 272059

upgpkg: meterbridge 0.9.2-1

Updating maintainer. Switching to sha512sums. Adding patch for C99 inline functions.
Using autoreconf instead of aclocal/automake/autoconf. Minor fixes.

Added:
  meterbridge/trunk/c99-inline-fix.patch
Modified:
  meterbridge/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   23 +++++++++++++++--------
 c99-inline-fix.patch |   10 ++++++++++
 2 files changed, 25 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-03 23:21:21 UTC (rev 272058)
+++ PKGBUILD	2017-12-03 23:43:25 UTC (rev 272059)
@@ -1,5 +1,6 @@
 # $Id$
-# Maintainer: speps <speps at aur dot archlinux dot org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: speps <speps at aur dot archlinux dot org>
 
 pkgname=meterbridge
 pkgver=0.9.2
@@ -9,11 +10,13 @@
 url="http://plugin.org.uk/meterbridge/"
 license=('GPL')
 depends=('jack' 'sdl_image')
-source=("http://plugin.org.uk/$pkgname/$pkgname-$pkgver.tar.gz")
-md5sums=('ef5d20761755c88e5b5a0c35f11f670e')
+source=("http://plugin.org.uk/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+        'c99-inline-fix.patch')
+sha512sums=('dec68307430649f3281528b31f20f501df07c4c9841776bac9c532d16a309bc701d39a5f577dc55eccb0edebc514d2eeca45c057a81a5c6c57bd61faae7deff0'
+            '4e76dcb966daa5080ebf85274739e6ac0ef5baf15ef42d4c9d9918f2ed03ce4dae954323f1fc3081360f175d24692f4d8612d39b3def11a480ac10d466f31da6')
 
 prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "${pkgname}-${pkgver}"
 
   # gcc 4.x fix
   sed -i "s/ buf_rect.*,//" src/main.h
@@ -21,16 +24,20 @@
   # iec scale fix
   # http://lists.linuxaudio.org/pipermail/linux-audio-dev/2012-June/032475.html
   sed -i 's/ 5.0/ 2.5/' src/dpm_meters.c
+
+  # fix the changed evaluation of inline functions
+  patch -Np0 -i "${srcdir}/c99-inline-fix.patch"
+
+  autoreconf -vi
 }
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  aclocal && automake -a && autoconf
+  cd "${pkgname}-${pkgver}"
   ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make DESTDIR="$pkgdir/" install
+  cd "${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}/" install
 }

Added: c99-inline-fix.patch
===================================================================
--- c99-inline-fix.patch	                        (rev 0)
+++ c99-inline-fix.patch	2017-12-03 23:43:25 UTC (rev 272059)
@@ -0,0 +1,10 @@
+--- src/linedraw.c	2002-10-10 12:06:06.000000000 +0200
++++ src/linedraw.c.fix	2017-12-04 00:36:19.839664181 +0100
+@@ -9,6 +9,7 @@
+ 	Uint32 *bufp = (Uint32 *)surface->pixels + y*surface->pitch/4 + x;
+ 	*bufp = col;
+ }
++void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col);
+ 
+ /* use Bresenham's alg. to draw a line between two integer coordinates */
+ 



More information about the arch-commits mailing list