blob: ca451430f8da7d36932354771cecd970a65b37a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: envolution
# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: trya <tryagainprod@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=lib32-sdl_sound
pkgver=2.0.2
pkgrel=1
pkgdesc="A library to decode several popular sound file formats, such as .WAV and .MP3 (32 bit)"
arch=('x86_64' 'i686')
url="http://icculus.org/SDL_sound/"
license=('LGPL')
depends=('lib32-sdl' sdl_sound)
source=(https://github.com/icculus/SDL_sound/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('5f92600de48ec640985d13e50d111af9ac30be797bc9a36eafa5d8cecc7e1f60')
build() {
cd SDL_sound-$pkgver
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
export SDL_CONFIG=/usr/bin/sdl-config-32
cmake -DCMAKE_C_FLAGS="-m32 -L/usr/lib32" \
-DCMAKE_CXX_FLAGS="-m32 -L/usr/lib32" \
-DCMAKE_EXE_LINKER_FLAGS="-m32 -L/usr/lib32" \
-DCMAKE_FIND_LIBRARY_SUFFIXES=".so" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="/usr/lib32" \
-S ./ \
-B ./build
cmake --build build
}
package() {
cd SDL_sound-$pkgver/build
make DESTDIR="$pkgdir" install
# remove stuff already present in sdl_sound package
rm -rf "$pkgdir"/usr/{bin,include,lib}
}
|