Skip to content

Instantly share code, notes, and snippets.

@Quintus
Created October 10, 2015 08:17
Show Gist options
  • Save Quintus/4690496791d759fe977a to your computer and use it in GitHub Desktop.
Save Quintus/4690496791d759fe977a to your computer and use it in GitHub Desktop.
MSYS2 PKGBUILD for SDL_mixer (SDL1, not SDL2)
# Maintainer: Your Name <youremail@domain.com>
_realname=SDL_mixer
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
pkgver=1.2.12
pkgrel=1
epoch=
pkgdesc="A simple multi-channel audio mixer"
arch=("any")
url="http://www.libsdl.org/SDL_mixer/release-1.2.html"
license=('MIT')
groups=()
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-SDL"
"${MINGW_PACKAGE_PREFIX}-libvorbis"
"${MINGW_PACKAGE_PREFIX}-flac"
"${MINGW_PACKAGE_PREFIX}-libmodplug")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=("staticlibs" "strip")
install=
changelog=
source=("http://www.libsdl.org/projects/SDL_mixer/release/${_realname}-${pkgver}.zip")
noextract=()
md5sums=("4bb0bc0e73f90f13bd0c92b7693a582f")
validpgpkeys=()
prepare() {
cd "$_realname-$pkgver"
#patch -p1 -i "$srcdir/fix-restrict.patch"
#patch -p1 -i "$srcdir/fix-recent-libpng.patch"
}
build() {
cd "$_realname-$pkgver"
./configure --prefix=${MINGW_PREFIX} --build=${MINGW_CHOST} --host=${MINGW_CHOST} --target=${MINGW_CHOST} --enable-shared --enable-static
make
}
package() {
cd "$_realname-$pkgver"
make DESTDIR="$pkgdir/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment