[arch-commits] Commit in sdl2_mixer/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Tue May 19 08:35:02 UTC 2020


    Date: Tuesday, May 19, 2020 @ 08:35:01
  Author: foutrelis
Revision: 386381

archrelease: copy trunk to staging-x86_64

Added:
  sdl2_mixer/repos/staging-x86_64/
  sdl2_mixer/repos/staging-x86_64/PKGBUILD
    (from rev 386380, sdl2_mixer/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: sdl2_mixer/repos/staging-x86_64/PKGBUILD (from rev 386380, sdl2_mixer/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-19 08:35:01 UTC (rev 386381)
@@ -0,0 +1,34 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgname=sdl2_mixer
+pkgver=2.0.4
+pkgrel=4
+pkgdesc="A simple multi-channel audio mixer (Version 2)"
+arch=('x86_64')
+url="http://www.libsdl.org/projects/SDL_mixer"
+license=('MIT')
+depends=('sdl2' 'libvorbis' 'libmodplug' 'mpg123' 'flac' 'opusfile')
+makedepends=('fluidsynth')
+optdepends=('fluidsynth: MIDI software synth, replaces built-in timidity')
+source=("https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${pkgver}.tar.gz")
+sha512sums=('98c56069640668aaececa63748de21fc8f243c7d06386c45c43d0ee472bbb2595ccda644d9886ce5b95c3a3dee3c0a96903cf9a89ddc18d38f041133470699a3')
+
+prepare() {
+  cd "${srcdir}/SDL2_mixer-${pkgver}/"
+
+  sed -i "s|/etc/timidity|/etc/timidity++|g" timidity/options.h
+  sed -i "s|/etc/timidity++.cfg|/etc/timidity++/timidity.cfg|g" timidity/options.h
+}
+
+build() {
+  cd "${srcdir}/SDL2_mixer-${pkgver}/"
+
+  ./configure --disable-static --prefix=/usr
+  make
+}
+
+package() {
+  cd "${srcdir}/SDL2_mixer-${pkgver}/"
+
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}


More information about the arch-commits mailing list